diff options
-rw-r--r-- | modern/package.json | 1 | ||||
-rw-r--r-- | modern/src/index.js | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/modern/package.json b/modern/package.json index 02b080a4..2c88c5fe 100644 --- a/modern/package.json +++ b/modern/package.json @@ -2,6 +2,7 @@ "name": "traccar", "version": "0.1.0", "private": true, + "homepage": "/modern/", "dependencies": { "@craco/craco": "^5.6.4", "@material-ui/core": "^4.9.7", diff --git a/modern/src/index.js b/modern/src/index.js index 3c52b230..82ddef95 100644 --- a/modern/src/index.js +++ b/modern/src/index.js @@ -1,7 +1,7 @@ import 'typeface-roboto' import React from 'react'; import ReactDOM from 'react-dom'; -import { BrowserRouter } from 'react-router-dom' +import { HashRouter } from 'react-router-dom' import { Provider } from 'react-redux'; import App from './App'; @@ -10,9 +10,9 @@ import store from './store'; ReactDOM.render(( <Provider store={store}> - <BrowserRouter> + <HashRouter> <App /> - </BrowserRouter> + </HashRouter> </Provider> ), document.getElementById('root')); |