[ABTEST-457] Variant url displayed instead of original url when clicking on language bar Created: 07/May/21  Updated: 27/Jul/21  Resolved: 20/Jul/21

Status: Closed
Project: A/B Testing
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.1

Type: Improvement Priority: Neutral
Reporter: Chuong Doan Huy Assignee: Michael Duerig
Resolution: Fixed Votes: 0
Labels: VN-Testing
Remaining Estimate: 0d
Time Spent: 7h
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2021-05-07 at 1.58.59 PM.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: ABn. Post GA tasks
Sprint: Content Mngmt 08
Story Points: 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.

 


Generated at Sun Feb 11 22:56:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.