Skip to content

Commit

Permalink
Update SchoolBus to use browser router, replacing hash based routing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionwyn committed Oct 3, 2024
1 parent d1a4acb commit ab79ea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/js/app.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import { Provider } from 'react-redux';
import { Router, Route, Redirect, hashHistory } from 'react-router';
import { Router, Route, Redirect, browserHistory } from 'react-router';
import { ProgressBar } from 'react-bootstrap';

import * as Constant from './constants';
Expand Down Expand Up @@ -118,7 +118,7 @@ const App = () => {

return (
<Provider store={store}>
<Router history={hashHistory}>
<Router history={browserHistory}>
<Redirect from="/" to={`/${Constant.HOME_PATHNAME}`} />
<Route path="/" component={Main}>
<Route path={Constant.HOME_PATHNAME} component={Home} />
Expand Down

0 comments on commit ab79ea5

Please sign in to comment.