-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
Problem:
There might be situations where variant resolving might be triggered when in AdminMode (in the PageEditor or in PreviewApp without explicitly setting preview parameters). For example:
- mainNode
- variant-0 (trait: date=today)
- variant-1 (trait: userAgent=Firefox) (using Firefox for preview)
In the above two cases it shouldn't be possible to edit the mainNode as variants will be resolved.
Possible solution:
- Prevent info.magnolia.personalization.trait.AbstractTraitDetectorFilter to set the Trait in the TraitCollector when in AdminMode.
- Prevent info.magnolia.personalization.filter.VariantResolverFilter to resolve variants when in AdminMode.
What is AdminMode?
- Authoring mode, i.e. editing a page in PageEditor (EditMode)
- Admin instance? (PreviewFilter should still work)
- In PreviewApp we want to maintain variant resolution!
-But we don't to resolve a variation without specified parameters (e.g. opening the preview app)- This should be fixed in the follow up ticket MGNLPN-131.
Acceptance criteria
- is related to
-
MGNLPN-139 VariantResolver should not be triggered in preview app
- Closed
- relates to
-
MGNLPN-184 Switching to original of a page in page preview jumps back to variant
- Closed