Improve 404 handling

This commit is contained in:
Ken-Håvard Lieng 2018-11-29 13:06:37 +01:00
parent 869713d236
commit 5861a54dfc
4 changed files with 146 additions and 125 deletions

View file

@ -64,7 +64,10 @@ export function updateSelection() {
if (serverAddrs.length === 0) {
dispatch(replace('/connect'));
} else if (history.length > 0) {
} else if (
history.length > 0 &&
history[history.length - 1] !== state.tab.selected
) {
const tab = history[history.length - 1];
dispatch(select(tab.server, tab.name, true));
} else if (servers[server]) {