X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/1072269cec78f75ec8995afab82d0faaa485f5da..95f1dba808337fed91cbcba656f94b68fc421e41:/src/index.tsx diff --git a/src/index.tsx b/src/index.tsx index c2142282..244d1387 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -132,7 +132,8 @@ fetchConfig() if (error.status === 404) { store.dispatch(openNotFoundDialog()); } else if (error.status === 401 && error.errors[0].indexOf("Not logged in") > -1) { - store.dispatch(logout()); + // Catch auth errors when navigating and redirect to login preserving url location + store.dispatch(logout(false, true)); } else { store.dispatch(snackbarActions.OPEN_SNACKBAR({ message: `${error.errors