Skip to content

Commit 3b2b822

Browse files
committed
frontend: KubeObject: Add cluster query param to getDetailsLink
This allows links to Details views to have the cluster from where the resource lives in when in multi cluster mode. This allows the URL to contain the multiple clusters and for the URL to still know which of the multiple clusters to look. Signed-off-by: René Dudfield <[email protected]>
1 parent 53c602e commit 3b2b822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/lib/k8s/KubeObject.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class KubeObject<T extends KubeObjectInterface | KubeEvent = any> {
126126
namespace: this.getNamespace(),
127127
name: this.getName(),
128128
};
129-
const link = createRouteURL(this.detailsRoute, params);
129+
const link = createRouteURL(this.detailsRoute, params, { cluster: this.cluster });
130130
return link;
131131
}
132132

0 commit comments

Comments
 (0)