#109117Page Browser tree does not preselect current page if parent nodes are collapsed/not loaded
Description
In the Page Browser, the current page selection should be preselected in the tree. However, this only works if the corresponding node is already expanded, visible and loaded in the tree (based on the current state).
If the page is located within a collapsed branch of the tree, the element is not selected or highlighted. As a result, the current page is not visibly preselected unless the user manually expands the parent nodes.
Steps to reproduce:
1. Open the Page Browser (e.g. via shortcut-page field “Shortcut to page”)
2. Select a page within a deeply nested branch of the tree
3. Save
4. Collapse all nodes in the backend page tree
5. Open the Page Browser again
Expected result:
The tree should automatically expand the necessary parent nodes and visibly preselect the current page.
Actual result:
The current page is not selected or highlighted if its parent nodes are collapsed.
Impact:
This makes it difficult for users to identify the current page location within the tree and reduces usability.