Make sure we also add the path when redirecting successfull code input

This is most relevant when SMS is sent to device used to watch the
lottery.
This commit is contained in:
2021-11-26 20:43:11 +01:00
parent 40b4a0657f
commit 0d14305ded

View File

@@ -61,7 +61,11 @@ export default {
if (site) {
createCookie("accesscode", site.code, 14);
window.location.href = `${window.location.protocol}//${site.domain}`;
const path = (location.pathname+location.search).substr(1)
const redirectUrl = `${window.location.protocol}//${site.domain}/${path}`
window.location.href = redirectUrl;
} else {
this.smh()
}
return;