From ca0458dd68f622e407b4854c93f3d214d9a9b7d1 Mon Sep 17 00:00:00 2001 From: Christian Pansch Date: Wed, 13 Mar 2024 17:14:04 +0100 Subject: [PATCH] push history on clicking node with href --- packages/react-ui-components/src/Tree/node.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react-ui-components/src/Tree/node.js b/packages/react-ui-components/src/Tree/node.js index 438abea408..675c30f284 100644 --- a/packages/react-ui-components/src/Tree/node.js +++ b/packages/react-ui-components/src/Tree/node.js @@ -205,7 +205,10 @@ export class Header extends PureComponent { href: directLink, target: '_blank', rel: 'noopener noreferrer', - onClick: (event) => event.preventDefault() + onClick: (event) => { + history.pushState({}, '', directLink); + return event.preventDefault(); + } }; }