[PAGES-948] [Norsu] @path value in routeTemplate should not include workspace Created: 29/Nov/22 Updated: 23/Oct/23 Resolved: 14/Dec/22 |
|
| Status: | Closed |
| Project: | Magnolia pages module |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.0 |
| Type: | Task | Priority: | Neutral |
| Reporter: | Christopher Zimmermann | Assignee: | Robert Šiška |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | 7h | Time Spent: | 7h |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Issue Links: |
|
||||||||||||||||||||||||||||
| Sub-Tasks: |
|
||||||||||||||||||||||||||||
| Template: | |||||||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||||||||||
| Task DoR: |
Empty
|
||||||||||||||||||||||||||||
| Epic Link: | SPA Maintenance | ||||||||||||||||||||||||||||
| Sprint: | DevX 25, DevX 26 | ||||||||||||||||||||||||||||
| Story Points: | 2 | ||||||||||||||||||||||||||||
| Team: | |||||||||||||||||||||||||||||
| Work Started: | |||||||||||||||||||||||||||||
| Description |
|
As a developer, when using Pages app on SaaS I want the iframe to load urls that do not include the workspace, so that I can use the path directly in my SPA as I am used to. This means SPA will not need to be adjusted to work on SaaS. We have decided to keep the JCR "workspace" name and concept on SaaS for consistancy. Implementation of Decision. — When a developer configures a page template, they configure which URL should be loaded in the iframe for the currently selected page. A typical configuration looks like this: title: 'React: Basic 2' baseUrl: http://localhost:3000 routeTemplate: '{{@path}}' The IFRAME then loads the url of the `baseUrl` plus the resolved `routeTemplate`. Expected: The @path parameter returns the path of the currenly selected page, without the workspace. ie, no "website" at the front. Actual: The @path parameter returns the full Norsu path, which includes the workspace at the front of the path. In this case "website". Acceptance criteria:
Example of the issue this is causing - porting trial customer: https://magnolia-cms.slack.com/archives/C0270PGSB1B/p1669375138388419
|