diff --git a/frontend/projects/shared-meet-components/src/lib/pages/login/login.component.ts b/frontend/projects/shared-meet-components/src/lib/pages/login/login.component.ts index df7d070..8ff7f9a 100644 --- a/frontend/projects/shared-meet-components/src/lib/pages/login/login.component.ts +++ b/frontend/projects/shared-meet-components/src/lib/pages/login/login.component.ts @@ -40,10 +40,12 @@ export class LoginComponent { this.openviduLogoUrl = this.contextService.getOpenViduLogoUrl(); this.backgroundImageUrl = this.contextService.getBackgroundImageUrl(); const redirectParam = this.route.snapshot.queryParams['redirectTo']; - - if (redirectParam) { - this.redirectTo = redirectParam; - } + + this.route.queryParams.subscribe((params) => { + if (params['redirectTo']) { + this.redirectTo = params['redirectTo']; + } + }); } async login() {