Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-527

Page variant switcher does not work for SPA

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.2.12
    • None
    • None

    Description

      Observed on the react-minimal demo in this project: https://git.magnolia-cms.com/projects/DEMOS/repos/minimal-headless-spa-demos/browse

      On a page with variants, the "Page Variant Switcher" select box at the bottom of the page does not work - it shows the current variant, but you cannot change the variant with it.

      To reproduce:

      • In the pages app browser - Select a SPA page. (Like "react-minimal")
      • Add a page variant and give it a name - like "Hats"
      • Open the "Hats" variant for editing."
      • Use the Page Variant to switch to "Original"

      Expected: It switches to the "Original" page variant.

      Result: The page reloads to the same variant ("hats") and the switcher control also flicks back to "Hats".

      The same thing happens if from the browser one opens the Original page. In the Page edigtor, if one tries to switch to a variant, the page reloads to the original and the switcher switches back.

      Workaround:

      Simply open the variant you are interested in from the Browser.

       

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rsiska Robert Šiška
                czimmermann Christopher Zimmermann
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 0.25d
                      0.25d