[MGNLSTK-1346] Navigation doesn't render when viewing version history of site root Created: 31/Jan/14  Updated: 02/Jul/18  Resolved: 02/Jul/18

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 2.7.1
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Adam Galloway Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File VersionedSTKPageModel.java    
Template:
Acceptance criteria:
Empty
Date of First Response:

 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.



 Comments   
Comment by Jan Haderka [ 02/Jul/18 ]

STK have been deprecated in September 2017. As part of this project nearing end-of-life, we are not planning to fix any of the existing issues except for the critical security issues. For more details, please consult documentation.

Generated at Mon Feb 12 07:35:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.