Skip to content

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

Fix deleting a certificate exits application inventory view

Carlos Monastyrskicfd14eb3e966
diff --git a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx
index cd9fc29574..214d0cad9a 100644
--- a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx
@@ -114,13 +114,25 @@ const Page = () => {
});
handlePopUpClose("deleteCertificate");
- navigate({
- to: "/organizations/$orgId/projects/cert-manager/$projectId/inventory",
- params: {
- orgId: currentOrg.id,
- projectId
- }
- });
+ if (fromApplication) {
+ navigate({
+ to: "/organizations/$orgId/projects/cert-manager/$projectId/applications/$applicationName",
+ params: {
+ orgId: currentOrg.id,
+ projectId,
+ applicationName: fromApplication
+ },
+ search: { selectedTab: "certificates" }
+ });
+ } else {
+ navigate({
+ to: "/organizations/$orgId/projects/cert-manager/$projectId/inventory",
+ params: {
+ orgId: currentOrg.id,
+ projectId
+ }
+ });
+ }
};
const handleCertificateExport = async (