Skip to content

Commit 59a4589

Browse files
committed
remove app_flow from localstorage once accessed
1 parent bcb9afa commit 59a4589

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/pods/application/route.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ export default Route.extend(UTMCookieRouteMixin, {
3030

3131
if(!this.session.isAuthenticated) {
3232
const app_flow = localStorage.getItem('app_flow')
33+
localStorage.removeItem('app_flow')
3334
if(app_flow !== 'logout') {
3435
localStorage.setItem('loginPrompt', true)
3536
}
36-
37+
3738
localStorage.setItem('redirectionPath', window.location.pathname)
3839
window.location.href = config.nuxtPublicUrl
3940
}

0 commit comments

Comments
 (0)