Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17231

Allow using url elements in the languageswitcher when uri map matching is used (patch)

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Customer request, Future
    • 4.2.0, 4.3.0, 4.4.0beta2
    • Misc
    • None

    Description

      The switchlanguage module currently only works with siteaccesses. However, when you use uri map matching, it makes sense to allow url elements of the uri matching rules instead. Example:

      Assuming the site access is named: foobar
      and the url element for this siteaccess is: foo
      Then...
      /switchlanguage/to/foobar/My-Article
      will redirect to
      /foobar/My-Article
      which does not work, because the correct URL is
      /foo/My-Article
      
      This will also not work:
      /switchlanguage/to/foo/My-Article
      because "foo" is not a siteaccess.
      

      With the patch, the last URL in the example will work.

      Attachments

        Activity

          People

            unknown unknown
            gl gl
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: