From 4b9a7a11727fbd3797d804f8299d712a386d42a0 Mon Sep 17 00:00:00 2001 From: Benjamin Zengin Date: Wed, 17 May 2023 10:01:32 +0200 Subject: [PATCH] Fixes SPA redirect for custom domain --- frontend/public/404.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/public/404.html b/frontend/public/404.html index 055bf006..54666da4 100644 --- a/frontend/public/404.html +++ b/frontend/public/404.html @@ -22,7 +22,7 @@ // https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes // https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe // Otherwise, leave pathSegmentsToKeep as 0. - var pathSegmentsToKeep = 1; + var pathSegmentsToKeep = 0; var l = window.location; l.replace( @@ -37,4 +37,4 @@ - \ No newline at end of file +