[MGNLPN-617] DOC: Not full info about variants=all in p13n of Headless SPA Created: 24/Jan/22  Updated: 04/Feb/22  Resolved: 04/Feb/22

Status: Closed
Project: Magnolia Personalization
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Bartosz Staryga Assignee: Martin DrĂ¡pela
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: DevX 3
Story Points: 2

 Description   

For https://docs.magnolia-cms.com/product-docs/6.2/Developing/SPA-development-and-Magnolia/Personalization-of-headless-SPA-projects.html

```
For the edit mode, make sure you include variants=all on the query params.
```
This is not full info.
Adding the variants only in edit mode,
having some not default variant chosen,
clicking on the preview page would render the empty component.

What we need is:
Edit page
iframe src: mgnl-author.com/foobar.html?mgnlPreview=false&mgnlChannel=desktop
YES, we need variants=all

Preview page
iframe src: mgnl-author.com/foobar.html?mgnlPreview=true&mgnlChannel=desktop
YES, we need variants=all

Preview as visitor
iframe src: mgnl-author.com/foobar.html?mgnlPreviewAsVisitor=true
NO, we DO NOT need variants=all

So we need to have variants=all when iframe src has mgnlPreview query parameter present.


Generated at Mon Feb 12 06:39:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.