Merge pull request #845 from tidalcycles/slashocalypse

fix: missing hash for links starting with /
This commit is contained in:
Felix Roos 2023-12-06 22:19:30 +01:00 committed by GitHub
commit bf30587180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;