Skip to content

Commit 12983bf

Browse files
committed
handle redirection Path
1 parent 41998de commit 12983bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/pods/application/route.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ export default Route.extend(UTMCookieRouteMixin, {
2727

2828
async beforeModel (transition) {
2929
this._super(...arguments)
30-
30+
3131
if(!this.session.isAuthenticated) {
32+
localStorage.setItem('redirectionPath', window.location.pathname)
33+
localStorage.setItem('loginPrompt', true)
3234
window.location.href = config.nuxtPublicUrl
3335
}
3436

0 commit comments

Comments
 (0)