Redirect to the SSO page if sso_redirect_options.on_welcome_page
is enabled and the URL hash is empty (#25495)
This commit is contained in:
parent
8997b84f24
commit
71800ba28c
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ export async function loadApp(fragParams: {}): Promise<ReactElement> {
|
||||||
const ssoRedirects = parseSsoRedirectOptions(config);
|
const ssoRedirects = parseSsoRedirectOptions(config);
|
||||||
let autoRedirect = ssoRedirects.immediate === true;
|
let autoRedirect = ssoRedirects.immediate === true;
|
||||||
// XXX: This path matching is a bit brittle, but better to do it early instead of in the app code.
|
// XXX: This path matching is a bit brittle, but better to do it early instead of in the app code.
|
||||||
const isWelcomeOrLanding = window.location.hash === "#/welcome" || window.location.hash === "#";
|
const isWelcomeOrLanding =
|
||||||
|
window.location.hash === "#/welcome" || window.location.hash === "#" || window.location.hash === "";
|
||||||
if (!autoRedirect && ssoRedirects.on_welcome_page && isWelcomeOrLanding) {
|
if (!autoRedirect && ssoRedirects.on_welcome_page && isWelcomeOrLanding) {
|
||||||
autoRedirect = true;
|
autoRedirect = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue