Login:Src: add redirect to wizard page
This commit is contained in:
parent
18b3de9997
commit
26a8d41be2
@ -75,9 +75,9 @@ export default async function RootLayout({
|
||||
redirectUrl = url.toString();
|
||||
}
|
||||
|
||||
/* if (typeof settings !== "string" && settings?.wizardToken) {
|
||||
if (typeof settings !== "string" && settings?.wizardToken) {
|
||||
redirectUrl = `wizard`;
|
||||
} */
|
||||
}
|
||||
|
||||
if (
|
||||
typeof settings !== "string" &&
|
||||
|
@ -58,7 +58,8 @@ export const Providers = ({
|
||||
);
|
||||
|
||||
React.useEffect(() => {
|
||||
if (redirectURL) window.location.replace(redirectURL);
|
||||
if (redirectURL && window.location.pathname !== `/${redirectURL}`)
|
||||
window.location.replace(redirectURL);
|
||||
}, [redirectURL]);
|
||||
|
||||
const { i18n } = useI18N({
|
||||
|
Loading…
Reference in New Issue
Block a user