--ih: fix nav to webroot

Co-authored-by: Til Schmitter <til.schmitter@gmail.com>
This commit is contained in:
ed
2026-09-27 18:23:08 +00:00
co-authored by Til Schmitter
parent 8d7aa4f860
commit 334dccc55e
+2 -2
View File
@@ -853,7 +853,7 @@ function vjoin(p1, p2) {
if (!p2)
p2 = '';
if (p1.endsWith('/'))
if (p1 != '/' && p1.endsWith('/'))
p1 = p1.slice(0, -1);
if (p2.startsWith('/'))
@@ -865,7 +865,7 @@ function vjoin(p1, p2) {
if (!p2)
return p1;
return p1 + '/' + p2;
return p1 == '/' ? p1 + p2 : p1 + '/' + p2;
}