From cbe6eb1f48f64e51667f0667b3dfcfabc20fd489 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 18 Jan 2024 21:52:46 +0100 Subject: [PATCH] test 5 --- index.html | 28 +++++++++++++------------- public/404.html | 52 ++++++++++++++++++++++++------------------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/index.html b/index.html index 345a265..c23fcc0 100644 --- a/index.html +++ b/index.html @@ -6,20 +6,20 @@ Vite + React - - - - - - - - - - - - - - +
diff --git a/public/404.html b/public/404.html index f989a67..771dc3a 100644 --- a/public/404.html +++ b/public/404.html @@ -1,27 +1,27 @@ - - - - - - - + + + + + React Router + --> - - - \ No newline at end of file + var l = window.location; + l.replace( + l.protocol + + "//" + + l.hostname + + (l.port ? ":" + l.port : "") + + l.pathname + .split("/") + .slice(0, 1 + pathSegmentsToKeep) + .join("/") + + "/?/" + + l.pathname.slice(1).split("/").slice(pathSegmentsToKeep).join("/").replace(/&/g, "~and~") + + (l.search ? "&" + l.search.slice(1).replace(/&/g, "~and~") : "") + + l.hash + ); + + + + \ No newline at end of file