Uploaded image for project: 'Extended Templating Kit (closed)'
  1. Extended Templating Kit (closed)
  2. MGNLETK-129

ETKSiteManager#getAssignedSite always returns the Default site for locale prefixed uri's

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 2.0.23
    • 2.0.21
    • None

    Description

      The DIFF between versions of a foreign language page on a multi-site instance fails because ETKSiteManager#getAssignedSite always returns the default site when the URI it is evaluating has a locale prefix such as "/fr/mysite".

      This is because none of the default rules used in getAssignedSite() handles URI's with this locale prefix, and so it falls back to returning the default site. Possible fix is to update SiteNameMatcher to also attempt matches with the locale prefixes for all of the Sites configured locales.

      See linked MGNLDIFF-80 for how to reproduce.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                pmundt Philip Mundt
                czimmermann Christopher Zimmermann
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: