diff options
Diffstat (limited to 'modern/src/index.js')
-rw-r--r-- | modern/src/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/index.js b/modern/src/index.js index 63f2b66c..cb6710d5 100644 --- a/modern/src/index.js +++ b/modern/src/index.js @@ -9,10 +9,12 @@ import * as serviceWorker from './serviceWorker'; import store from './store'; import { LocalizationProvider } from './common/components/LocalizationProvider'; +const base = window.location.href.indexOf('modern') >= 0 ? '/modern' : null; + ReactDOM.render(( <Provider store={store}> <LocalizationProvider> - <BrowserRouter> + <BrowserRouter basename={base}> <App /> </BrowserRouter> </LocalizationProvider> |