[PAGES-527] Page variant switcher does not work for SPA Created: 21/Oct/21 Updated: 29/Jun/22 Resolved: 04/Nov/21 |
|
| Status: | Closed |
| Project: | Magnolia pages module |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.2.12 |
| Type: | Bug | Priority: | Major |
| Reporter: | Christopher Zimmermann | Assignee: | Robert Šiška |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | VN-Testing | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 0.25d | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| 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)
|
||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
||||||||
| Epic Link: | Headless p13n | ||||||||
| Sprint: | HL & LD 40, HL & LD 41 | ||||||||
| Story Points: | 3 | ||||||||
| Description |
|
Observed on the react-minimal demo in this project: https://git.magnolia-cms.com/projects/DEMOS/repos/minimal-headless-spa-demos/browse On a page with variants, the "Page Variant Switcher" select box at the bottom of the page does not work - it shows the current variant, but you cannot change the variant with it. To reproduce:
Expected: It switches to the "Original" page variant. Result: The page reloads to the same variant ("hats") and the switcher control also flicks back to "Hats". The same thing happens if from the browser one opens the Original page. In the Page edigtor, if one tries to switch to a variant, the page reloads to the original and the switcher switches back. Workaround: Simply open the variant you are interested in from the Browser.
|