From 9cc756e848aa0b8d92596e661374dcc5c16c9d88 Mon Sep 17 00:00:00 2001 From: Rob Bos Date: Wed, 21 Aug 2024 13:20:26 +0200 Subject: [PATCH] different setup --- public/404.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/404.html b/public/404.html index 5762b82..01fcd9b 100644 --- a/public/404.html +++ b/public/404.html @@ -15,7 +15,8 @@ // Construct the new URL (only needed for forks with a subfolder, should not be used on https://github-copilot.xebia.ms!) let basePath = '/'; - if (!pathname.startsWith('https://github-copilot.xebia.ms')) { + // check if the url is for prod + if (!window.location.hostname === 'github-copilot.xebia.ms') { // Redirect to the root of the fork basePath = '/copilot-videos/#' + pathname.replace('copilot-videos', ''); }