From 24e41d9ce97567b7ca9e47df1f18c19148bf2836 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 20 May 2026 15:42:00 +0200 Subject: [PATCH 1/2] Use cockpit.location.go() for URL-based container switching This will pick up the Firefox hack for , i.e. avoids a page reload when clicking on the "Used by:" links. (This wasn't a test issue -- human clicks did the same.) `cockpit.location.go()` adds an extra `/` after the hash. Adjust the consumer and test accordingly. --- src/Containers.jsx | 2 +- src/ImageUsedBy.jsx | 3 +-- test/check-application | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Containers.jsx b/src/Containers.jsx index ffe9feee0..c3b45b0cc 100644 --- a/src/Containers.jsx +++ b/src/Containers.jsx @@ -551,7 +551,7 @@ class Containers extends React.Component { return { expandedContent: , columns, - initiallyExpanded: document.location.hash.substring(1) === container.Id, + initiallyExpanded: document.location.hash.substring(2) === container.Id, props: { key: container.key, "data-row-id": container.key, diff --git a/src/ImageUsedBy.jsx b/src/ImageUsedBy.jsx index b526022c9..fe4e0c470 100644 --- a/src/ImageUsedBy.jsx +++ b/src/ImageUsedBy.jsx @@ -27,8 +27,7 @@ const ImageUsedBy = ({ containers, showAll }) => {