Skip to content

Commit

Permalink
preserve #hash on client-side redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Nov 8, 2024
1 parent df715b6 commit da90324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ function getRedirectFile() {
return '';
}

var newLocation = getLanguageFolder() + '/' + getRedirectFile();
var newLocation = getLanguageFolder() + '/' + getRedirectFile() + window.location.hash;
window.location.href = newLocation;

0 comments on commit da90324

Please sign in to comment.