Fix `/web` redirecting to `/web/web` in web UI (#13128)
Fixes #13127remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
parent
983ab40086
commit
0f07218e53
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue