From 351182adce8d777581cbaf5f3596e36a7cdc4cab Mon Sep 17 00:00:00 2001 From: Alex Lipovka Date: Thu, 6 Feb 2025 23:04:18 +0400 Subject: [PATCH] Trim current path to 2nd level by default for LinkToEdit --- src/components/LinkToEdit/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LinkToEdit/index.tsx b/src/components/LinkToEdit/index.tsx index bcc30030..85e8b528 100644 --- a/src/components/LinkToEdit/index.tsx +++ b/src/components/LinkToEdit/index.tsx @@ -40,7 +40,7 @@ export function LinkToEdit(props: LinkToEditProps) { ); } - const pathname = location.pathname.split('/').slice(0, 2).join('/'); + const pathname = location.pathname.split('/').slice(0, 3).join('/'); const entityResource = getSourceFromProvenance(provenance); const qrId = entityResource?.id; return {name};