Skip to content

Commit

Permalink
fix: use hashrouter to survive page reload
Browse files Browse the repository at this point in the history
  • Loading branch information
stoerti committed Sep 24, 2024
1 parent 688260c commit 85b68fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LoginPage from "./pages/Login.tsx";
import GameSelectionPage from "./pages/GameSelectionPage.tsx";
import GamePage from "./pages/game/GamePage.tsx";
import LogoutPage from "./pages/LogoutPage.tsx";
import { createBrowserRouter } from "react-router-dom";
import {createBrowserRouter, createHashRouter} from "react-router-dom";

const routes: RouteObject[] = [
{
Expand All @@ -24,4 +24,4 @@ const routes: RouteObject[] = [
}
]

export const router = createBrowserRouter(routes);
export const router = createHashRouter(routes);

0 comments on commit 85b68fc

Please sign in to comment.