mirror of
https://github.com/bitwarden/browser
synced 2026-01-05 01:53:55 +00:00
[PS-788] - Item links use cipherId in query string (#2880)
* Replace 'cipherId' query param with 'itemId' for linkable ciphers
This commit is contained in:
@@ -41,10 +41,12 @@ export class PermissionsGuard implements CanActivate {
|
||||
if (permissions != null && !org.hasAnyPermission(permissions)) {
|
||||
// Handle linkable ciphers for organizations the user only has view access to
|
||||
// https://bitwarden.atlassian.net/browse/EC-203
|
||||
if (state.root.queryParamMap.has("cipherId")) {
|
||||
const cipherId =
|
||||
state.root.queryParamMap.get("itemId") || state.root.queryParamMap.get("cipherId");
|
||||
if (cipherId) {
|
||||
return this.router.createUrlTree(["/vault"], {
|
||||
queryParams: {
|
||||
cipherId: state.root.queryParamMap.get("cipherId"),
|
||||
itemId: cipherId,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user