Edit Content shell shows referring portlet's breadcrumb / active menu when opened from another portlet
@hmoreras is already working on this.
Since May 22, 2026.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Description
When a user opens the Edit Content shell (/dotAdmin/#/content/{inode}) from a tab or window that isn't content-drive, the chrome of the page shows the referring portlet's breadcrumb and menu highlight instead of the breadcrumb that belongs to Edit Content itself.
Concrete scenario:
- User is in any portlet other than
content-drive(e.g., Query Tool, ES Search, Tags) at/dotAdmin/#/<portlet>. - User opens a contentlet whose Content Type has
CONTENT_EDITOR2_ENABLED=truein a new browser tab (or any flow that lands directly at/dotAdmin/#/content/{inode}). - The new tab loads
/dotAdmin/#/content/{inode}— URL is correct, the Edit Content form renders correctly. - But the breadcrumb shows
Home > Dev Tools > Query Tool(the referring portlet, or whatever the last menu activation was) instead ofHome > Content, and the left menu still highlights the referring portlet.
Expected (verified by directly typing /dotAdmin/#/content/{inode} in a clean session or via the canonical content-drive flow): breadcrumb should resolve from the active URL path → Home > Content, and the left menu should highlight the Content group / Search item.
The Edit Content form itself is correct and functional — the issue is purely the surrounding chrome (breadcrumb + active menu).
Acceptance Criteria
- Opening
/dotAdmin/#/content/{inode}in a fresh browser tab renders the breadcrumbHome > Content > <title>regardless of which portlet the link came from - The left menu highlights the
Contentgroup /Searchitem when on/dotAdmin/#/content/{inode}, not the previously-active portlet - The fix works for all entry paths: direct URL,
window.open(_blank), in-tab navigation, and middle/cmd-click on any anchor that points to/content/{inode} - The legacy edit-content path (
/c/content/{inode}) chrome is reviewed alongside; if it has the same problem, decide whether to fix or document it as a known legacy limitation - No regression for the existing content-drive → Edit Content flow (breadcrumb + menu state stay correct)
Priority
Medium
Additional Context
Surfaced while validating the Query Tool migration (#35709). The Query Tool now opens result-row clicks via window.open(_blank) with /dotAdmin/#/content/{inode}, which exposes this chrome behavior; the same issue is reproducible from ES Search and any other portlet that links into Edit Content.
The bug lives in whichever component computes the breadcrumb / menu-active state for the Edit Content route — it appears to read from a stateful "last activated portlet" instead of resolving from the current URL path. Two candidate fixes for the implementing team to choose between:
- Resolve from URL on activation. Inside the Edit Content shell (or its parent route guard/resolver), detect the active path and force-set the breadcrumb + menu state to "Content" before the form renders.
- Make the breadcrumb a pure derivative of the route tree. Drive it from
ActivatedRoutedata rather than from a stateful service that only updates on menu clicks.
Repro steps:
- Open
/dotAdmin/#/query-tool(or any portlet other thancontent-drive). - Run a query that returns content of a type with the new editor enabled (e.g.,
+contentType:BulkProduct +live:true +languageId:1on the demo site). - Click a result title (opens in a new tab with the Query Tool implementation, or
Cmd+Clickfrom any other portlet that links to/content/{inode}). - Observe the breadcrumb in the new tab: shows the referring portlet's crumb chain.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.