Skip to content

Commit 2741926

Browse files
author
Vladimir Kotal
committed
Merge pull request #805 from vladak/H_link
prefix entry with backslash if it does not start with it
2 parents 39c745d + 693131a commit 2741926

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/org/opensolaris/opengrok/web/Util.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,9 @@ public static void writeHAD(Writer out, String ctxE, String entry,
603603

604604
out.write("<td class=\"q\"><a href=\"");
605605
out.write(histPrefixE);
606+
if (!entry.startsWith("/")) {
607+
entry = "/" + entry;
608+
}
606609
out.write(entry);
607610
out.write("\" title=\"History\">H</a>");
608611

0 commit comments

Comments
 (0)