Uploaded image for project: 'A/B Testing'
  1. A/B Testing
  2. ABTEST-457

Variant url displayed instead of original url when clicking on language bar

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 1.0.1
    • None
    • Content Mngmt 08
    • 5

    Description

      Step to reproduce

      1. Create a test with "/travel/stories" as original page (set "traffic allocation" to 100% to make sure 100% chance abtest served)
      2. Start that test.
      3. Preview travel home page (preview in tab to open separate tab view).
      4. Click on "Stories" in the navigation bar to redirect to "travel/stories.html"
      5. Click on "German" in the language bar in the top right corner to change language to German.

      Expected result

      original URL is displayed (travel/de/stories.html)

      Actual result 

      variant URL is displayed (travel/de/stories/abTestVariants/variant-B.html)

      Note

      Same happens for /travel/destination and /travel/tour.

      Analysis

      The links in the language bar are created by calling localizedLinks on the wrapped variant node, which results in an absolute URL to the variant node. A solution could be to override getPath() and getIdentifier() in ABTestVariantNodeWrapper and return the path/identifier of the original node.

       

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mduerig Michael Duerig
              chuong.doan Chuong Doan Huy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD

                  Time Tracking

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