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

DefaultRouter fails to create proper URL under specific circumstances

    XMLWordPrintable

Details

    Description

      DefaultRouter fails to create proper URL because of str_replace.

      When you try to generate URL (ie. Twig: url('some.route')) that is SiteAccess aware it will generate incorrect URL if:

      Explanation: It tries to replace any occurence of /ezplatform with /example/ezplatform in base URL: http://ezplatform.com/ezplatform.

      (If you try to generate route with path: /, it will replace every slash in URL with SiteAccess name, ie: http:/example//example/ezplatform.com/example/)

      Edit: Probably duplicate of: https://jira.ez.no/browse/EZP-28099 (Seems similar, put probably different issue)

      Attachments

        Activity

          People

            Unassigned Unassigned
            slawomir.uchto@ibexa.co Sławomir Dołżycki-Uchto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: