Skip to content

Commit 3d17d04

Browse files
committed
Catch static side nav links
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
1 parent b9beafb commit 3d17d04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

public/pages/workflow_detail/workflow_detail.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ export function WorkflowDetail(props: WorkflowDetailProps) {
128128
}
129129
};
130130
useEffect(() => {
131-
const links = document.querySelectorAll(`a[href="/app/home"]`); // this will catch the home page buttons in core OSD.
131+
// try to catch as many external links as possible, particularly
132+
// ones that will go to the home page, or different plugins within
133+
// the side navigation.
134+
const links = document.querySelectorAll(`a[href*="app/"]`);
132135
links.forEach((link) => {
133136
link.addEventListener('click', handleLinkClick);
134137
});

0 commit comments

Comments
 (0)