diff --git a/src/protocol.ts b/src/protocol.ts index 292a4a02e3..f6812b49e6 100644 --- a/src/protocol.ts +++ b/src/protocol.ts @@ -121,7 +121,7 @@ export default class ProtocolHandler { public getProfileFromDeeplink(args: string[]): string | undefined { // check if we are passed a profile in the SSO callback url const deeplinkUrl = args.find( - (arg) => arg.startsWith(`${this.protocol}://`) || arg.startsWith(`${LEGACY_PROTOCOL}://`), + (arg) => arg.startsWith(`${this.protocol}:/`) || arg.startsWith(`${LEGACY_PROTOCOL}://`), ); if (deeplinkUrl?.includes(SEARCH_PARAM)) { const parsedUrl = new URL(deeplinkUrl);