Skip to content

Commit

Permalink
fix NormalizeURL
Browse files Browse the repository at this point in the history
If I didn't try to keep the code close to the original this would have been rewritten
  • Loading branch information
TuxedoTako committed Mar 12, 2023
1 parent ca9fefd commit f549007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Miscellaneous/NormalizeURL.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const NormalizeURL = {
}

pathname = pathname.join('/');
if (location.pathname !== pathname.join('/')) {
if (location.pathname !== pathname) {
return history.replaceState(history.state, '', `${location.protocol}//${location.host}${pathname}${location.hash}`);
}
}
Expand Down

0 comments on commit f549007

Please sign in to comment.