From 2bc81e8e9a32b0d52e0921072a336d719d21b50c Mon Sep 17 00:00:00 2001 From: vlofgren Date: Thu, 18 Aug 2022 16:45:51 +0200 Subject: [PATCH] Fix fragment bug. --- .../java/nu/marginalia/wmsa/edge/model/EdgeUrlTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/marginalia_nu/src/test/java/nu/marginalia/wmsa/edge/model/EdgeUrlTest.java b/marginalia_nu/src/test/java/nu/marginalia/wmsa/edge/model/EdgeUrlTest.java index 953fd473..dd5a797b 100644 --- a/marginalia_nu/src/test/java/nu/marginalia/wmsa/edge/model/EdgeUrlTest.java +++ b/marginalia_nu/src/test/java/nu/marginalia/wmsa/edge/model/EdgeUrlTest.java @@ -10,6 +10,12 @@ class EdgeUrlTest { public void testHashCode() throws URISyntaxException { System.out.println(new EdgeUrl("https://memex.marginalia.nu").hashCode()); } + + @Test + public void testFragment() throws URISyntaxException { + var url = new EdgeUrl("https://memex.marginalia.nu/#here"); + System.out.println(url.path); + } @Test public void testParam() throws URISyntaxException { System.out.println(new EdgeUrl("https://memex.marginalia.nu/index.php?id=1").toString());