From 5810b0c7a2f780ae1818e022996abd5728f820e0 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Thu, 18 Jan 2024 17:43:34 +0100 Subject: [PATCH] [PM-5300] Use deep linking for premium (#6432) Resolves the get premium links not working in the browser extension. Replaces them with the deep links instead. --- apps/web/src/app/auth/login/login.component.ts | 4 +--- .../web/src/app/billing/individual/premium.component.html | 2 +- .../angular/src/vault/components/attachments.component.ts | 4 +++- libs/angular/src/vault/components/premium.component.ts | 8 ++++++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/apps/web/src/app/auth/login/login.component.ts b/apps/web/src/app/auth/login/login.component.ts index 85a36be4d0..2cd0817b15 100644 --- a/apps/web/src/app/auth/login/login.component.ts +++ b/apps/web/src/app/auth/login/login.component.ts @@ -95,9 +95,7 @@ export class LoginComponent extends BaseLoginComponent implements OnInit { async ngOnInit() { // eslint-disable-next-line rxjs-angular/prefer-takeuntil, rxjs/no-async-subscribe this.route.queryParams.pipe(first()).subscribe(async (qParams) => { - if (qParams.premium != null) { - this.routerService.setPreviousUrl("/settings/premium"); - } else if (qParams.org != null) { + if (qParams.org != null) { const route = this.router.createUrlTree(["create-organization"], { queryParams: { plan: qParams.org }, }); diff --git a/apps/web/src/app/billing/individual/premium.component.html b/apps/web/src/app/billing/individual/premium.component.html index fb175a5ea3..f688d6af88 100644 --- a/apps/web/src/app/billing/individual/premium.component.html +++ b/apps/web/src/app/billing/individual/premium.component.html @@ -54,7 +54,7 @@