Details
-
Improvement
-
Resolution: Fixed
-
Neutral
-
None
-
-
Empty show more show less
-
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.