[PAGES-522] External SPA: Iframe url, language switcher does nothing Created: 14/Oct/21  Updated: 02/Nov/21  Resolved: 25/Oct/21

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.12

Type: Bug Priority: Blocker
Reporter: Bartosz Staryga Assignee: Canh Nguyen
Resolution: Fixed Votes: 0
Labels: VN-Implementation
Remaining Estimate: Not Specified
Time Spent: 2.5d
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by PAGES-488 More versatile url property in templa... Closed
documentation
to be documented by PAGES-525 DOC: language and languagePath params Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Documentation update required:
Yes
Date of First Response:
Epic Link: External SPA
Sprint: HL & LD 40
Story Points: 3

 Description   

Steps to reproduce

  1.  Use new external-SPA with `url` parameter (See: https://jira.magnolia-cms.com/browse/PAGES-488)
  2.  Change language in edit view

Expected results

The default language iframe URL:
http://localhost:3000/nextjs-ssr-minimal?mgnlPreview=false&mgnlChannel=desktop
should be changed like in FTL to:
http://localhost:3000/de/nextjs-ssr-minimal?mgnlPreview=false&mgnlChannel=desktop
With language code added, here /de/

Actual results

Nothing happens

Workaround

Development notes



 Comments   
Comment by Canh Nguyen [ 19/Oct/21 ]

Updated:
There is a new param:

  • language

Examples: Default language en

  • routeTemplate:
    /{language}{{path}} 
    • /travel
    • /de/travel
  • routeTemplate:
    {{path}}?lang={language} 
    • /travel?lang=
    • /travel?lang=de

 

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