Feat: scstwbox redirect

This commit is contained in:
Dorian Zedler 2022-07-17 13:57:14 +02:00
parent 62a177f852
commit 72d5b1e524
Signed by: dorian
GPG Key ID: 989DE36109AFA354
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
layout: redirect
redirectUrl: "/scstw?ref=ScStwApp"
redirectDelay: "0"
---

View File

@ -15,4 +15,16 @@ menu:
If you got interested and want to know more about the ScStw, feel free to contact us, and we will be happy to tell you everything you need to know about it.
{{% contactForm %}}
{{% contactForm %}}
<script>
const urlParams = new URLSearchParams(window.location.search);
const ref = urlParams.get('ref');
if(ref) {
switch(ref) {
case 'ScStwCase':
window.location.href = "https://scstw.itsblue.de";
break;
}
}
</script>