[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: |
|
| 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 reproduce1. Create a test with "/travel/stories" as original page (set "traffic allocation" to 100% to make sure 100% chance abtest served) Expected resultoriginal URL is displayed (travel/de/stories.html) Actual resultvariant URL is displayed (travel/de/stories/abTestVariants/variant-B.html) NoteSame happens for /travel/destination and /travel/tour. AnalysisThe 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.
|