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

version param does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • None
    • None
    • None

    Description

      "Preview in tab" always shows the latest version of the page.

      Steps:

      • Choose a page that has some versions
      • Click "Show versions" and choose the earliest one
      • The earliest version is shown
      • Click "Preview in tab"

      Expected: the earliest version is shown

      Actual: the latest version is shown

       

      Note: This happens on minimal-headless-spa-demos also https://git.magnolia-cms.com/projects/DEMOS/repos/minimal-headless-spa-demos/pull-requests/22/overview?commentId=96624

       

      How to fix:

      Use "search" as a parameter instead of "href" when calling the getVersion method.

      For angular-sample: fixing in root.component.ts
      For react-sample: fixing in App.js
      For vue-sample: fixing in PageLoader.vue

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                plequoc Phong Le Quoc
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD