add return to
This commit is contained in:
parent
d6bfb50516
commit
ab317b428a
|
@ -81,7 +81,8 @@
|
||||||
// prevent auto redirect if not on portal domain to allow local development
|
// prevent auto redirect if not on portal domain to allow local development
|
||||||
if (window.location.hostname.endsWith("${PORTAL_DOMAIN}")) {
|
if (window.location.hostname.endsWith("${PORTAL_DOMAIN}")) {
|
||||||
setTimeout(function redirect() {
|
setTimeout(function redirect() {
|
||||||
window.location.href = "https://account.${PORTAL_DOMAIN}/auth/login";
|
const encodedReturnTo = encodeURIComponent(window.location.href);
|
||||||
|
window.location.href = `https://account.${PORTAL_DOMAIN}/auth/login?return_to=${encodedReturnTo}`;
|
||||||
}, 5000); // redirect after 5 secons
|
}, 5000); // redirect after 5 secons
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Reference in New Issue