Made handling of wrong base URL more graceful

This commit is contained in:
Henry Whitaker
2020-05-21 00:21:38 +01:00
parent 76206de2c5
commit 04faa2097a

View File

@@ -33,9 +33,6 @@ export default class Index extends Component {
loading: false,
redirect: true,
});
if(window.location.pathname != window.config.base) {
window.location.href = window.config.base;
}
})
}
@@ -49,7 +46,7 @@ export default class Index extends Component {
<Loader />
);
} else {
if(baseSet) {
if(baseSet && window.config.base) {
return (
<BrowserRouter>
<Route render={(props) => (<ToastContainer />)} />