Revision 51584
Added by Myrto Koukouli almost 6 years ago
authentication.service.ts | ||
---|---|---|
91 | 91 |
let state = sessionStorage.getItem("state.location"); |
92 | 92 |
sessionStorage.removeItem("state.location"); |
93 | 93 |
console.log(`tried to login - returning to state: ${state}`); |
94 |
if (state.includes('landing')) { |
|
95 |
this.router.navigate([this.baseUrl+"/dashboard"]); |
|
96 |
} else { |
|
97 |
this.router.navigate([state]); |
|
98 |
} |
|
94 |
this.router.navigate([state]); |
|
99 | 95 |
} |
100 |
} else { |
|
101 |
this.isLoggedIn = false; |
|
102 | 96 |
} |
103 | 97 |
} |
104 | 98 |
|
Also available in: Unified diff
final commit before first deployment