Skip to content
Snippets Groups Projects
Verified Commit 5e410bdf authored by Morgan Bazalgette's avatar Morgan Bazalgette Committed by Haelwenn
Browse files

Fix going to /web and getting redirected to /web/web

parent 582956d0
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ function main() {
if (window.history && history.replaceState) {
const { pathname, search, hash } = window.location;
const path = pathname + search + hash;
if (!(/^\/web[$/]/).test(path)) {
if (!(/^\/web($|\/)/).test(path)) {
history.replaceState(null, document.title, `/web${path}`);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment