Details
-
Improvement
-
Resolution: Won't Do
-
Neutral
-
None
-
2.7.1
-
None
-
None
-
-
Empty show more show less
Description
This can be reproduced in demo.magnolia-cms.com
1. Click Publish on /demo-project and start workflow
2. Click Show versions and select any version
3. In the detail view the top level navigation doesn't render, only the "home" element for the current page.
The issue is caused by the STKPageModel returning the VersionedNode for getSiteRoot() instead of getting the base website repository node.
When viewing version history on a child page getSiteRoot() returns the base website repository node so navigation renders properly.
Attached is an extended implementation of the STKPageModel that checks if the current node is a version or a real node and then gets the real site root as needed.
Using VersionManager may also work but it would need an empty try/catch.