fix: broken redirect for url with params when welcome page disable
This commit is contained in:
parent
64322db56a
commit
f5c0d7da5e
|
@ -80,11 +80,9 @@ function _getWebWelcomePageRoute(state) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Web: if the welcome page is disabled, go directly to a random room.
|
// Web: if the welcome page is disabled, go directly to a random room.
|
||||||
|
let url = new URL(window.location.href);
|
||||||
let href = window.location.href;
|
url.pathname += generateRoomWithoutSeparator();
|
||||||
|
route.href = url.href;
|
||||||
href.endsWith('/') || (href += '/');
|
|
||||||
route.href = href + generateRoomWithoutSeparator();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.resolve(route);
|
return Promise.resolve(route);
|
||||||
|
|
Loading…
Reference in New Issue