diff --git a/apps/forum/src/components/App.tsx b/apps/forum/src/components/App.tsx index d048eb27..4d2f27c4 100644 --- a/apps/forum/src/components/App.tsx +++ b/apps/forum/src/components/App.tsx @@ -1,6 +1,7 @@ import React, { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import { + HashRouter, BrowserRouter, Routes, Route, @@ -24,9 +25,9 @@ import FilterAltIcon from "@mui/icons-material/FilterAlt"; const App = () => { return (
- + - +
); }; @@ -53,11 +54,11 @@ const InnerApp = () => { const [filterButtonClicked, setFilterButtonClicked] = useState(false); const isThreadRoute = - location.pathname.includes("forum/") && + location.pathname.includes("forum#/") && location.pathname.split("/").length === 4; const handleReset = () => { - navigate("/forum"); + navigate("/"); setRefresh(!refresh); }; @@ -123,7 +124,7 @@ const InnerApp = () => { {!isThreadRoute && (