mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-11 13:16:38 +00:00
fix broken redirect url on custom auth url login
This commit is contained in:
@@ -50,11 +50,15 @@ export default function ValidateSessionTransferToken(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (doRedirect) {
|
if (doRedirect) {
|
||||||
|
if (props.redirect && props.redirect.startsWith("http")) {
|
||||||
|
router.push(props.redirect);
|
||||||
|
} else {
|
||||||
// add redirect param to dashboardUrl if provided
|
// add redirect param to dashboardUrl if provided
|
||||||
const fullUrl = `${env.app.dashboardUrl}${props.redirect || ""}`;
|
const fullUrl = `${env.app.dashboardUrl}${props.redirect || ""}`;
|
||||||
router.push(fullUrl);
|
router.push(fullUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
validate();
|
validate();
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in New Issue
Block a user