Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-3461

SiteFactory SiteAccessMatcher generates URLs with duplicated slash

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • 3.3.0
    • Site Factory

    Description

      Steps to reproduce

      1. Create a new Site via SiteFactory
      2. In the front-end template of that Site try to generate an URL (using for instance ez_path() Twig function)
      3. Display the page. Observe that every link has duplicated / after the domain.

      Result
      System returns 404.

      Potential patch (not sure if this is the correct approach though)

      --- vendor/ezsystems/ezplatform-site-factory/src/lib/SiteAccessMatcher.php
      +++ vendor/ezsystems/ezplatform-site-factory/src/lib/SiteAccessMatcher.php
      @@ -106,4 +106,9 @@ final class SiteAccessMatcher extends URI implements Matcher, JsonSerializable
       
               return parent::analyseURI($uri);
           }
      +
      +    public function analyseLink($linkUri)
      +    {
      +        return $linkUri;
      +    }
       }
      
      

      Attachments

        Activity

          People

            mikolaj.adamczyk@ibexa.co MikoĊ‚aj Adamczyk
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: