Skip to content

Commit

Permalink
Merge pull request #845 from tidalcycles/slashocalypse
Browse files Browse the repository at this point in the history
fix: missing hash for links starting with /
  • Loading branch information
felixroos committed Dec 6, 2023
2 parents d9f78e1 + 1b372a9 commit bf30587
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bf30587

Please sign in to comment.