Skip to content

Commit

Permalink
fixing navigation url test
Browse files Browse the repository at this point in the history
  • Loading branch information
mimuogi committed Jul 27, 2024
1 parent 184470c commit 7cc6471
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ import { ContactPage } from "./pages/contact.tsx";
import { PodcastPage } from "./pages/podcast.tsx";
import { Layout } from "./components/layout/layout";

(function () {
const l = window.location;
if (l.search.startsWith("/?/")) {
const newPath = l.search.slice(3).replace(/~and~/g, "&");
l.replace(l.protocol + "//" + l.host + newPath + l.hash);
}
})();

const router = createBrowserRouter(
[
{
Expand Down

0 comments on commit 7cc6471

Please sign in to comment.