Improve 404 handling
This commit is contained in:
parent
869713d236
commit
5861a54dfc
4 changed files with 146 additions and 125 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue