Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-1346

Navigation doesn't render when viewing version history of site root

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Do
    • Neutral
    • None
    • 2.7.1
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              adam.galloway@nrg-edge.com Adam Galloway
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: