[MGNLPN-71] Preview app should have path to original node as parameter Created: 09/Apr/14  Updated: 15/Apr/14  Resolved: 15/Apr/14

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

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File PagePreviewSubAppTest.patch    
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
Date of First Response:
Epic Link: Personalisation
Sprint: 5.3 Sprint 6

 Description   

Caused by MGNLPN-66 (P13nNodeWrapper.getPath() now returns path to variant instead to original page).

When we switch to a variant in the preview app, we don't have the path to parent node anymore:

http://localhost:8080/magnoliaAuthor/.magnolia/admincentral#app:preview:detail;/demo-project/variants/variant-0:view::previewCountry=cz


 Comments   
Comment by Roman Kovařík [ 10/Apr/14 ]

Commit:
https://git.magnolia-cms.com/gitweb/?p=enterprise/p13n.git;a=commitdiff;h=8483e66d42491c7454d0fd4ac815fbb5480635bc

Comment by Roman Kovařík [ 10/Apr/14 ]

Commit:
https://git.magnolia-cms.com/gitweb/?p=enterprise/p13n.git;a=commitdiff;h=b4207a69d3bf39c9fd8e9e078f471a5935b98f98

Comment by Philip Mundt [ 15/Apr/14 ]

location.updateNodePath(node.getPath()); has to be called even if the underlying node is not a mgnl:variant. Currently, the node path will only be updated for variant nodes.

Comment by Philip Mundt [ 15/Apr/14 ]

Please add this test to verify (see attachement).

Comment by Roman Kovařík [ 15/Apr/14 ]

Commit:
https://git.magnolia-cms.com/gitweb/?p=enterprise/p13n.git;a=commitdiff;h=4a33a6be3fb5100a42b1005d2924eb1e2063df9e

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