diff --git a/packages/admin-ui/src/pages/packages/components/Info/RemovePackage.tsx b/packages/admin-ui/src/pages/packages/components/Info/RemovePackage.tsx index 41eea6ad3..ba1e7b6ae 100644 --- a/packages/admin-ui/src/pages/packages/components/Info/RemovePackage.tsx +++ b/packages/admin-ui/src/pages/packages/components/Info/RemovePackage.tsx @@ -97,7 +97,14 @@ export function RemovePackage({ dnp }: { dnp: InstalledPackageDetailData }) { message: `Removing ${name} ${deleteVolumes ? " and volumes" : ""}...`, onSuccess: `Removed ${name}` }); - navigate("/" + packagesRelativePath); + + // Navigate to "/packages/my" only if user located in current unistalling package tab + const currentPath = location.pathname + .split("/") + .slice(0, -1) + .join("/"); + currentPath === "/" + packagesRelativePath + "/" + dnpName && + navigate("/" + packagesRelativePath); } catch (e) { console.error(e); }