File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,12 @@ export default Route.extend(UTMCookieRouteMixin, {
2929 this . _super ( ...arguments )
3030
3131 if ( ! this . session . isAuthenticated ) {
32+ const app_flow = localStorage . getItem ( 'app_flow' )
33+ if ( app_flow !== 'logout' ) {
34+ localStorage . setItem ( 'loginPrompt' , true )
35+ }
36+
3237 localStorage . setItem ( 'redirectionPath' , window . location . pathname )
33- localStorage . setItem ( 'loginPrompt' , true )
3438 window . location . href = config . nuxtPublicUrl
3539 }
3640
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export default Service.extend({
3434
3535 async invalidate ( ) {
3636 await this . api . request ( '/jwt/logout' ) . catch ( err => console . log ( err ) )
37+ localStorage . setItem ( 'app_flow' , 'logout' )
3738 window . location . href = `${ ENV . oneauthURL } /logout?returnTo=${ ENV . publicUrl } `
3839 } ,
3940
You can’t perform that action at this time.
0 commit comments