From 11317a57a16197e0fdec71744e8ccf95ff3e4a4b Mon Sep 17 00:00:00 2001 From: Mario Zelger Date: Mon, 12 Feb 2024 21:28:41 +0100 Subject: [PATCH] revert: switch back to HashRouter GH Pages still does not support SPAs and the recommended approach is to use a Hash Router. --- src/App.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index af9edf5..1293c5a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ import React, {createContext, useEffect, useState} from 'react'; -import {BrowserRouter as Router, Route, Routes,} from "react-router-dom"; +import {HashRouter as Router, Route, Routes} from "react-router-dom"; import { faBars, faCalendarDays, @@ -23,7 +23,6 @@ import {SectionT} from "./components/Section"; import SectionHashHelper from "./helper/SectionHashHelper"; import SearchPage from "./pages/SearchPage"; import Loading from "./components/Loading"; -import LegacyUrlRedirectHelper from "./helper/LegacyUrlRedirectHelper"; export type LinkT = { title: string @@ -84,8 +83,7 @@ function App() { checkLinks(sections, links) return
- - +
@@ -95,9 +93,10 @@ function App() {
}/> + }/> }/> }/> - }/> + }/> }/>