aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/App.js5
-rw-r--r--src/web/src/components/Search/Searches.js2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js
index 70d154af..74ae2cd8 100644
--- a/src/web/src/components/App.js
+++ b/src/web/src/components/App.js
@@ -356,7 +356,10 @@ class App extends Component {
<System {...props} state={applicationState} options={applicationOptions} />
)
}/>
- <Redirect from='*' to={`${urlBase}/searches`}/>
+ <Route render={(props) =>
+ /\/(searches\/?|browse|users|chat|rooms|uploads|downloads|system\/)/
+ .test(props.location.pathname) ?
+ <></> : <Redirect to={`${urlBase}/searches`}/>} />
</>}
</Switch>
</AppContext.Provider>
diff --git a/src/web/src/components/Search/Searches.js b/src/web/src/components/Search/Searches.js
index 46a9f709..42b82f8c 100644
--- a/src/web/src/components/Search/Searches.js
+++ b/src/web/src/components/Search/Searches.js
@@ -42,8 +42,8 @@ const Searches = ({ server }) => {
const onConnectionError = (error) => { setConnecting(false); setError(error); };
const onUpdate = (update) => {
- onConnected();
setSearches(update);
+ onConnected();
};
useEffect(() => {