mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-22 13:13:10 -04:00
fix: missing hash for links starting with /
This commit is contained in:
@@ -35,6 +35,7 @@ function relativeURLFix() {
|
||||
// any other relative url starting with /
|
||||
// NOTE: this does strip off serialized queries and fragments
|
||||
newHref += url.pathname.endsWith('/') ? url.pathname : url.pathname + '/';
|
||||
newHref += url.hash || '';
|
||||
} else {
|
||||
// leave this URL alone
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user