Uploaded image for project: 'Magnolia Frontend Helpers'
  1. Magnolia Frontend Helpers
  2. MGNLFE-492

Preview page action does not honor variants

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • Neutral
    • None
    • None
    • None
    • None

    Description

      Steps to reproduce:

      1. Use react-minimal of minimal-headless-spa-demo
      2. Create a paragraph component with some variants
      3. Choose a variant and then "Preview page"

      => Expected: Variant is shown

      => Actual: Original content is shown

      Analyze:

      The problem should come from GetMagnoliaContext

      if (magnoliaContext.isMagnolia && !mgnlPreviewAsVisitor) {
        searchParams.set('variants', 'all');
      } 

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              bstaryga Bartosz Staryga
              plequoc Phong Le Quoc
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD