From 383c0ec25c7fcda7190868499079a7963f4147a5 Mon Sep 17 00:00:00 2001 From: Jeffrey Holland Date: Thu, 21 Aug 2025 15:33:31 +0200 Subject: [PATCH] Add comment to lock component describing `disable-redirect` param --- libs/key-management-ui/src/lock/components/lock.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/key-management-ui/src/lock/components/lock.component.ts b/libs/key-management-ui/src/lock/components/lock.component.ts index 764ff77e0bb..df1d0892e51 100644 --- a/libs/key-management-ui/src/lock/components/lock.component.ts +++ b/libs/key-management-ui/src/lock/components/lock.component.ts @@ -653,6 +653,9 @@ export class LockComponent implements OnInit, OnDestroy { } // determine success route based on client type + // The disable-redirect parameter allows callers to prevent automatic navigation after unlock, + // useful when the lock component is used in contexts where custom post-unlock behavior is needed + // such as passkey modals. if ( this.clientType != null && this.activatedRoute.snapshot.paramMap.get("disable-redirect") === null