Skip to content

Commit

Permalink
remove router basename
Browse files Browse the repository at this point in the history
  • Loading branch information
JHurdle91 committed Oct 22, 2021
1 parent 145e19c commit ec85025
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ import Login from "./components/Login";
import Register from "./components/Register";
import Profile from "./components/Profile";

const PUBLIC_URL = process.env.REACT_APP_PUBLIC_URL;

const Routes = () => {
const posts = "/posts";
const login = "/login";
const register = "/register";
const profile = "/profile";

return (
<HashRouter basename={PUBLIC_URL}>
<HashRouter>
<Navbar />
<Switch>
<Route exact path={["/", "/home"]} component={App} />
Expand Down

0 comments on commit ec85025

Please sign in to comment.