Merge pull request 'Feat: scstwbox redirect' (#8) from feat/scstw-box-redirect into master

Reviewed-on: https://git.dorian.im/itsblue-development/itsblue-website/pulls/8
This commit is contained in:
Dorian Zedler 2022-07-17 13:59:08 +02:00
commit f9bc3224fa
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>