فهرست منبع

Use query params instead of url params

jnfrati 5 سال پیش
والد
کامیت
d1c7fccaa9
1فایلهای تغییر یافته به همراه4 افزوده شده و 6 حذف شده
  1. 4 6
      dashboard/src/main/home/cluster-dashboard/dashboard/NamespaceList.tsx

+ 4 - 6
dashboard/src/main/home/cluster-dashboard/dashboard/NamespaceList.tsx

@@ -158,12 +158,10 @@ export const NamespaceList: React.FunctionComponent = () => {
             <StyledCard
               key={namespace?.metadata?.name}
               onClick={() =>
-                pushFiltered(
-                  { location, history },
-                  `/applications/${currentCluster.name}/${namespace.metadata.name}`,
-                  [],
-                  {}
-                )
+                pushFiltered({ location, history }, `/applications`, [], {
+                  cluster: currentCluster.name,
+                  namespace: namespace.metadata.name,
+                })
               }
             >
               <ContentContainer>