Fix/passcode wall redirect #94

Merged
KevinMidboe merged 4 commits from fix/passcode-wall-redirect into master 2021-11-26 19:50:23 +00:00
Showing only changes of commit 0d14305ded - Show all commits

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;