Login:Src: add redirect to wizard page

This commit is contained in:
Darya Umrikhina 2024-07-12 16:13:04 +04:00
parent 18b3de9997
commit 26a8d41be2
2 changed files with 4 additions and 3 deletions

View File

@ -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" &&

View File

@ -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({