diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/components/App.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js index 0530c903..70d154af 100644 --- a/src/web/src/components/App.js +++ b/src/web/src/components/App.js @@ -356,11 +356,7 @@ class App extends Component { <System {...props} state={applicationState} options={applicationOptions} /> ) }/> - <Route render={(props) => - // eslint-disable-next-line max-len - /\/(searches\/?|browse|users|chat|rooms|uploads|downloads|system|system\/(info|options|shares|data|logs))$/ - .test(props.location.pathname) ? - <></> : <Redirect to={`${urlBase}/searches`}/>} /> + <Redirect from='*' to={`${urlBase}/searches`}/> </>} </Switch> </AppContext.Provider> |
