mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-23 03:28:33 +00:00
Merge pull request #845 from tidalcycles/slashocalypse
fix: missing hash for links starting with /
This commit is contained in:
commit
bf30587180
@ -35,6 +35,7 @@ function relativeURLFix() {
|
|||||||
// any other relative url starting with /
|
// any other relative url starting with /
|
||||||
// NOTE: this does strip off serialized queries and fragments
|
// NOTE: this does strip off serialized queries and fragments
|
||||||
newHref += url.pathname.endsWith('/') ? url.pathname : url.pathname + '/';
|
newHref += url.pathname.endsWith('/') ? url.pathname : url.pathname + '/';
|
||||||
|
newHref += url.hash || '';
|
||||||
} else {
|
} else {
|
||||||
// leave this URL alone
|
// leave this URL alone
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user