From e750ad71dee080cae3760160df59ded10a7250cf Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Mon, 12 Jun 2023 12:51:19 +0200 Subject: [PATCH] added fix for url encoded paths (#20813) fixes: #20782 --- .../admin-ui/src/components/routable-tabs/RoutableTabs.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/apps/admin-ui/src/components/routable-tabs/RoutableTabs.tsx b/js/apps/admin-ui/src/components/routable-tabs/RoutableTabs.tsx index 5345d74060..708b9b5a5b 100644 --- a/js/apps/admin-ui/src/components/routable-tabs/RoutableTabs.tsx +++ b/js/apps/admin-ui/src/components/routable-tabs/RoutableTabs.tsx @@ -39,7 +39,9 @@ export const RoutableTabs = ({ .map((child) => child.props.eventKey.toString()); // Determine if there is an exact match. - const exactMatch = eventKeys.find((eventKey) => eventKey === pathname); + const exactMatch = eventKeys.find( + (eventKey) => eventKey === decodeURI(pathname) + ); // Determine which event keys at least partially match the current path, then sort them so the nearest match ends up on top. const nearestMatch = eventKeys