X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/524ce540a6aacece98c402591b8907d2d52122e7..19414f258a2a1e354e8721888dcdf68d937b0ec4:/src/index.tsx?ds=sidebyside

diff --git a/src/index.tsx b/src/index.tsx
index c214228258..244d138730 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
