diff --git a/src/app/auth/redirect/redirect.component.ts b/src/app/auth/redirect/redirect.component.ts index 0958f849f..5782c37c5 100644 --- a/src/app/auth/redirect/redirect.component.ts +++ b/src/app/auth/redirect/redirect.component.ts @@ -26,7 +26,7 @@ export class RedirectComponent implements OnInit { const orgId = this.route.snapshot.queryParams.state.split('_')[0]; const url = `http://localhost:4200/oauth/travelperk?code=${this.route.snapshot.queryParams.code}&state=${orgId}`; this.windowService.redirect(url); - } else if (this.route.snapshot.queryParams?.state === 'qbo_local_redirect' || this.route.snapshot.queryParams?.state === 'business_central_local_redirect') { + } else if (this.route.snapshot.queryParams?.state === 'qbo_local_redirect' || this.route.snapshot.queryParams?.state === 'business_central_local_redirect' || this.route.snapshot.queryParams?.state === 'xero_local_redirect') { const url = `http://localhost:4200/oauth/default?code=${this.route.snapshot.queryParams.code}&realmId=${this.route.snapshot.queryParams.realmId}`; this.windowService.redirect(url); }