[PAGES-90] Open-in-tab button does not open correct url Created: 01/Sep/16  Updated: 09/Feb/17  Resolved: 27/Sep/16

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: 5.4.8
Fix Version/s: 5.4.9, 5.5

Type: Bug Priority: Major
Reporter: Christopher Zimmermann Assignee: Oanh Thai Hoang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 4d 3.5h
Original Estimate: 5d

Issue Links:
causality
caused by PAGES-73 Add link extension in page bar editor... Closed
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: Saigon 64
Story Points: 8

 Description   

The button should open the same url that the user is currently browsing in the page editor. Currently it opens the path to the current page, which can result the wrong content being displayed because it does not take into account the mappings, the selectors (ie ~), or the querystring.

Due to this problem, a different, or broken page is sometimes opened when using this feature.
Additionally, part of the need for this feature is that developers and authors can work with and see the actual url.

Examples from the travel demo:

Navigate to any specific tour in the preview mode of the page editor. for example click on the Malasia tour in the carousel.
Use the Open-in-tab button.
Expected: the Malasia tour is opened. URL is /tours/magnolia-travels/A-Taste-of-Malaysia.html?mgnlChannel=desktop&mgnlPreview=true
Actual: the Switzerland tour is opened: URL is /travel/tour.html

Navigate to any tourtype category in the preview mode of the page editor, for example "cultural".
use the Open-in-tab button.
Expected: The Cultural tourtype page is opened: /travel/tour-type~cultural~.html?mgnlChannel=desktop&mgnlPreview=true
Actual: The Active tourtype is opened. URL is /travel/tour-type.html

Navigate to any destination category in the preview mode of the page editor, for example "Central and South America".
use the Open-in-tab button.
Expected: The "Central and South America" destination page is opened: /travel/destination~southAmerica~.html?mgnlChannel=desktop&mgnlPreview=true
Actual: The Active tourtype is opened, but somehow broken. URL is /travel/destination.html

Notes
See comments from https://jira.magnolia-cms.com/browse/PAGES-73 for images and some discussion.

It would be preferable to remove the mgnlChannel=desktop&mgnlPreview=true string which is appended by the editor.


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