From 88f13d3be5d3c1ea7e938a64d807571df8004d86 Mon Sep 17 00:00:00 2001 From: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com> Date: Tue, 30 Jan 2024 13:00:32 -0500 Subject: [PATCH] PM-5762 - DeepLinkGuard - Fix issue in which org invite acceptance was broken due to us not properly checking for the lock url; if an org name or org user email contained lock, then the login redirect url would not persist and take the user to the accept org invite page after login. (#7744) --- apps/web/src/app/auth/guards/deep-link.guard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/app/auth/guards/deep-link.guard.ts b/apps/web/src/app/auth/guards/deep-link.guard.ts index 9e9212b377..1bc462d73d 100644 --- a/apps/web/src/app/auth/guards/deep-link.guard.ts +++ b/apps/web/src/app/auth/guards/deep-link.guard.ts @@ -51,6 +51,6 @@ export function deepLinkGuard(): CanActivateFn { }; function isValidUrl(url: string | null | undefined): boolean { - return !Utils.isNullOrEmpty(url) && !url?.toLocaleLowerCase().includes("lock"); + return !Utils.isNullOrEmpty(url) && !url?.toLocaleLowerCase().includes("/lock"); } }