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

version param does not work

XMLWordPrintable

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

      "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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD