diff --git a/src/Miscellaneous/NormalizeURL.js b/src/Miscellaneous/NormalizeURL.js index 302cd29ba..9a61783b6 100644 --- a/src/Miscellaneous/NormalizeURL.js +++ b/src/Miscellaneous/NormalizeURL.js @@ -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}`); } }