mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 05:38:35 +00:00
fix: missing hash for links starting with /
This commit is contained in:
parent
2ddd2d1f39
commit
1b372a9a7b
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user