diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-01-29 07:10:05 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-29 07:10:05 -0600 |
| commit | e4cd65bac0b63151babd691f2640bff25cd85a70 (patch) | |
| tree | 34eda3fceeafaf1cb2517e14ddd2ed8ae08fb42c | |
| parent | ff8d29cd8228df0b2476e07bfb1a5528857c46b1 (diff) | |
| parent | 7ce7c570ad94765a30061263a0b1992b1316cc2f (diff) | |
| download | slskd-e4cd65bac0b63151babd691f2640bff25cd85a70.tar.gz | |
Merge pull request #870 from slskd/route-again
Revert back to catch-all route
| -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> |
