Skip to content

Commit 9b2d371

Browse files
committed
fix: update community link and switch to HashRouter for routing
1 parent 1fe2d06 commit 9b2d371

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ <h2>What's Next?</h2>
121121
</ol>
122122

123123
<a href="./viz/">Go to viz page</a>
124-
<a href="./community/">Go to community (React)</a>
124+
<a href="./community/#/">Community</a>
125125

126126
</body>
127127
</html>

web/src/main.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import React from "react";
22
import ReactDOM from "react-dom/client";
3-
import { BrowserRouter, Routes, Route } from "react-router-dom";
3+
import { HashRouter, Routes, Route } from "react-router-dom";
44
import Intro from "./pages/Intro.jsx";
55
import User_community from "./pages/User_community.jsx";
66
import "./index.css";
77

88
ReactDOM.createRoot(document.getElementById("root")).render(
99
<React.StrictMode>
10-
<BrowserRouter>
10+
<HashRouter>
1111
<Routes>
1212
<Route path="/" element={<Intro />} />
1313
<Route path="/User_community" element={<User_community />} />
1414
</Routes>
15-
</BrowserRouter>
15+
</HashRouter>
1616
</React.StrictMode>
1717
);

0 commit comments

Comments
 (0)