From b0e2e0f1e4c379b8ace90e250b00e2339968fc9e Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 22 Dec 2020 19:13:32 +0100 Subject: [PATCH] catalog: fix EntityLayout TabbedLayout route path matching Co-authored-by: blam --- plugins/catalog/src/components/EntityLayout/TabbedLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog/src/components/EntityLayout/TabbedLayout.tsx b/plugins/catalog/src/components/EntityLayout/TabbedLayout.tsx index ffe5709b48..a2209ba492 100644 --- a/plugins/catalog/src/components/EntityLayout/TabbedLayout.tsx +++ b/plugins/catalog/src/components/EntityLayout/TabbedLayout.tsx @@ -34,7 +34,7 @@ export function useSelectedSubRoute( const [matchedRoute] = matchRoutes(routes, `/${params['*']}`) ?? []; const foundIndex = matchedRoute - ? subRoutes.findIndex(t => t.path === matchedRoute.route.path) + ? subRoutes.findIndex(t => `${t.path}/*` === matchedRoute.route.path) : 0; return {