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:
Kristian Ntavidi 2021-07-06 09:46:27 +03:00
parent 3e98297da9
commit 684d784d1a
2 changed files with 5 additions and 2 deletions

View File

@ -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))

View File

@ -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>