From 252c696cf671c3d12cca8e08b9809a9b15b7c855 Mon Sep 17 00:00:00 2001 From: Christoph Bartschat Date: Mon, 16 Mar 2026 15:50:44 -0700 Subject: [PATCH 1/2] Add redirect handler --- src/pages/index.jsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 43fd5d4..f649619 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -4,6 +4,20 @@ import Layout from '@theme/Layout'; import Head from '@docusaurus/Head'; import HeroCanvas from '@site/src/components/HeroCanvas'; +const REDIRECTS = { + 'tutorials': 'https://youtube.com/@8thwall', +} + +const REDIRECT_SCRIPT = ` +const sitePath = new URLSearchParams(window.location.search).get('site_path'); +const redirects = ${JSON.stringify(REDIRECTS)}; +if (sitePath && redirects[sitePath]) { + window.location.replace(redirects[sitePath]); + document.pause(); +} +` + + export default function Home() { return ( @@ -12,6 +26,7 @@ export default function Home() { +
From 4f2bc6ce7e58fd095a2280e8b25d0020225bc742 Mon Sep 17 00:00:00 2001 From: Christoph Bartschat Date: Mon, 16 Mar 2026 17:12:43 -0700 Subject: [PATCH 2/2] Add redirect handler --- src/pages/index.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/index.jsx b/src/pages/index.jsx index f649619..4cd13db 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -13,7 +13,6 @@ const sitePath = new URLSearchParams(window.location.search).get('site_path'); const redirects = ${JSON.stringify(REDIRECTS)}; if (sitePath && redirects[sitePath]) { window.location.replace(redirects[sitePath]); - document.pause(); } `