X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b6ac7fe88d347582d39fffa002e300af222c578f..fe9217330135c4fe4fca85900419f0cde547e483:/src/store/auth/auth-middleware.ts diff --git a/src/store/auth/auth-middleware.ts b/src/store/auth/auth-middleware.ts index 87a1253b80..eb1e42b5de 100644 --- a/src/store/auth/auth-middleware.ts +++ b/src/store/auth/auth-middleware.ts @@ -59,7 +59,7 @@ export const authMiddleware = (services: ServiceRepository): Middleware => store document.title = `Arvados Workbench (${config.uuidPrefix})`; next(action); }, - LOGOUT: ({ deleteLinkData }) => { + LOGOUT: ({ deleteLinkData, preservePath }) => { next(action); if (deleteLinkData) { services.linkAccountService.removeAccountToLink(); @@ -69,7 +69,7 @@ export const authMiddleware = (services: ServiceRepository): Middleware => store services.authService.removeSessions(); services.authService.removeUser(); removeAuthorizationHeader(services); - services.authService.logout(token || ''); + services.authService.logout(token || '', preservePath); }, default: () => next(action) });