Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7478

DOC: locale aware virtualUriMapping

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • None
    • core

    Description

      Installation without travel demo:

      1. request for /de/source
      2. i18n filter detects language DE and strips language prefix: /source
      3. virtualUriFilter forwards to /target (default locale)
      4. i18n filter detect default (wrong) language

      Installation with travel demo (has bypass configured on i18n filter for fowards):

      1. request for /de/source
      2. i18n filter detects language DE and strips language prefix: /source
      3. virtualUriFilter forwards to /target (default locale)
      4. i18n is bypassed (keeping the correct language in the context)

      Forwards are working but dynamic fragments are broken as those include the language prefix.

      The bypass should be either

      • configured by default (not only by travel demo) and dynamic fragments should be requested without the locale prefix (this seems to be the most straightforward solution) or
      • no bypass, i18n would be triggered for forwards
        • virtualUriFilter would have to be before the i18n filter (this would change the order of the cache filter as well!)
          • forward have to be configured including the language prefix (/ {locale}/source) -> /{locale}

            /target)

      We have integration tests for personalisation but the language specific request are probably not covered.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                mdrapela Martin Drápela
                rkovarik Roman Kovařík
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Time Spent - 2h 16m Remaining Estimate - 5h
                      5h
                      Logged:
                      Time Spent - 2h 16m Remaining Estimate - 5h
                      2h 16m