Routing updates.
* Start new dmp Button navigates you to home. * Login page redirects you to home page if user is already logged in.
This commit is contained in:
parent
3e98297da9
commit
684d784d1a
|
@ -54,10 +54,13 @@ export class LoginComponent extends BaseComponent implements OnInit, AfterViewIn
|
|||
private mergeLoginService: MergeLoginService,
|
||||
private oauth2DialogService: Oauth2DialogService,
|
||||
private httpClient: HttpClient,
|
||||
private matomoService: MatomoService
|
||||
private matomoService: MatomoService,
|
||||
) { super(); }
|
||||
|
||||
ngOnInit(): void {
|
||||
if(this.authService.current()){
|
||||
this.router.navigate(['home']);
|
||||
}
|
||||
this.matomoService.trackPageView('loginPage');
|
||||
this.route.queryParams
|
||||
.pipe(takeUntil(this._destroyed))
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
analysed and stored.</p>
|
||||
</div>
|
||||
<div class="head-start-dmp">
|
||||
<a href="/login">
|
||||
<a href="/home">
|
||||
<button type="button" class="normal-btn">Start your DMP</button>
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue