summaryrefslogtreecommitdiffstats
path: root/src/test/java
diff options
context:
space:
mode:
authorFlorian Zschocke <f.zschocke+git@gmail.com>2021-12-06 21:03:04 +0100
committerFlorian Zschocke <f.zschocke+git@gmail.com>2021-12-06 21:03:04 +0100
commit823a8fbb34b1cd25faa72cb466fb8df00514b5cf (patch)
tree5a3fc45d7c4cd5d3aeae5655965a2b372a745815 /src/test/java
parentb6eccdd716ae35f093797e0935a0021c13f5e73a (diff)
downloadgitblit-823a8fbb34b1cd25faa72cb466fb8df00514b5cf.tar.gz
gitblit-823a8fbb34b1cd25faa72cb466fb8df00514b5cf.zip
pages: Fix repo-relative reference links in markdown docs
As with explicit links, also for reference links in markdown documents which point to repository-relative files the links are broken. They do not take the path to the repository into account. This fix is related to commit b23269 which fixed issue #1358 for explicit links.
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/gitblit/wicket/MarkupProcessorTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/com/gitblit/wicket/MarkupProcessorTest.java b/src/test/java/com/gitblit/wicket/MarkupProcessorTest.java
index a57f1fdb..2a2f5174 100644
--- a/src/test/java/com/gitblit/wicket/MarkupProcessorTest.java
+++ b/src/test/java/com/gitblit/wicket/MarkupProcessorTest.java
@@ -217,7 +217,7 @@ public class MarkupProcessorTest
MarkupDocument mdoc = mp.parse("testrepo", "12345abcde", "main.md", markup);
Document doc = Jsoup.parseBodyFragment(mdoc.html);
String href = doc.getElementsByAttribute("href").attr("href");
- assertEquals("Incorrect link rendered","doc/testrepo/12345abcde/%65%E5%67%2C%8A%Ee.md", href);
+ assertEquals("Incorrect link rendered","doc/testrepo/12345abcde/%E6%97%A5%E6%9C%AC%E8%AA%9E.md", href);
}
@Test