Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-588

Language tag in spa renderer misses the country in the url

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.2.18
    • None
    • None
    • None
    • DevX 9
    • 3

    Description

      Steps to reproduce

      1. Define a site definition in English and Chinese. (English as fallback)
      <site config>:
        [...]
        i18n:
          [...]
          fallbackLocale: en
          locales:
            en:
              enabled: true
              language: en
              country: 
            zh_CN:
             enabled: true
             language: zh
             country: CN
      1. Set up a template with the new spa renderer
      [...]
      routeTemplate: /{language}{{@path}}
      [...]
      1. Open the pages app and switch the language to Chinese

      Expected results

      I would expect to see the content translated into Chinese.
      And if I click on the open page in a new tab, I would expect to see a URL like this:
      https://<URL to my system>/zh_CN/<path of my page>

      Actual results

      I see the fallback content in English and if click on the open page in a new tab I see the following URL:

      https://<URL to my system>/zh/<path of my page>

      Workaround

      As far as I could see, there is no workaround for this problem!

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                plequoc Phong Le Quoc
                tobias.kerschbaum Tobias Kerschbaum
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 5d 4.75h
                      5d 4.75h