Skip to content

Commit

Permalink
Merge pull request #320 from bounswe/hotfix/FE-redirect-home
Browse files Browse the repository at this point in the history
[HOTFIX] Redirect empty urls to home
  • Loading branch information
hikasap authored Oct 21, 2024
2 parents be5f293 + ad26027 commit e0a6dbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "./App.css";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import { BrowserRouter as Router, Route, Routes, Navigate } from "react-router-dom";
import Login from "./components/login/Login.js";
import Register from "./components/login/Register.js";
import ForgotPassword from "./components/login/ForgotPassword.js";
Expand Down Expand Up @@ -27,6 +27,8 @@ function App() {
<Route path="markets" element={<MarketsPage />} />
<Route path="news" element={<NewsPage />} />
<Route path="portfolio" element={<PortfolioPage />} />

<Route path="/" element={<Navigate to="/home" />} />
</Route>
</Routes>
</div>
Expand Down

0 comments on commit e0a6dbd

Please sign in to comment.