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