Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(approvals): keep main sidebar when opening approval email link

bernie-g71dafa1e2c3f
diff --git a/backend/src/services/approval-policy/approval-request-fns.ts b/backend/src/services/approval-policy/approval-request-fns.ts
index 9627bc48d3..4d8155cff7 100644
--- a/backend/src/services/approval-policy/approval-request-fns.ts
+++ b/backend/src/services/approval-policy/approval-request-fns.ts
@@ -268,7 +268,7 @@ export const notifyStepApprovers = async (
try {
const project = await projectDAL.findById(request.projectId);
- const approvalUrl = `${cfg.SITE_URL}/organizations/${request.organizationId}/projects/cert-manager/${request.projectId}/approvals/${request.id}?policyType=${encodeURIComponent(request.type)}`;
+ const approvalUrl = `${cfg.SITE_URL}/organizations/${request.organizationId}/projects/cert-manager/${request.projectId}/approvals/${request.id}?policyType=${encodeURIComponent(request.type)}&from=root-requests`;
await sendApprovalEmailsForStep(
step,