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};