1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

[AC-1139] Added missing parameter to customRedirect

This commit is contained in:
Rui Tome
2023-11-17 16:20:35 +00:00
parent 8e5dc600df
commit 8d2e529faa

View File

@@ -27,7 +27,7 @@ export class OrganizationRedirectGuard implements CanActivate {
const customRedirect = route.data?.autoRedirectCallback;
if (customRedirect) {
let redirectPath = customRedirect(org);
let redirectPath = customRedirect(org, flexibleCollectionsEnabled);
if (typeof redirectPath === "string") {
redirectPath = [redirectPath];
}