1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-04 02:33:33 +00:00

Add comment to lock component describing disable-redirect param

This commit is contained in:
Jeffrey Holland
2025-08-21 15:33:31 +02:00
parent 31b7a60bde
commit 383c0ec25c

View File

@@ -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