Skip to content
Snippets Groups Projects
Unverified Commit 0f07218e authored by ThibG's avatar ThibG Committed by GitHub
Browse files

Fix `/web` redirecting to `/web/web` in web UI (#13128)

Fixes #13127
parent 983ab400
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