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

PathPrefix still present when using ezpLanguageSwitcher

    XMLWordPrintable

    Details

      Description

      When checking wether pathPrefix sould be removed or not, it is assumed that you already are in a subfolder of the PathPrefix. The case where you want to go to the root of your pathPrefix folder is not properly handled.

      Ex:

      • Home
        • MyPathPrefixFolder
          • News
          • Contents
          • ...
        • MyOtherFolder

      Let's say "MyPathprefixFolder" is the home folder for a siteaccess, then you'll have in your site.ini

      site.ini

      PathPrefix=MyPathPrefixFolder

      When switching language directly from your homepage, the PathPrefix is added to the new language:
      mywebsite.com/switchlanguage/to/fr/ redirects to fr.mywebsite.com/MyPathPrefixFolder instead of just fr.mywebsite.com.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                oz.conseil oz.conseil Conseil
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: