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

lookup() and createUrlAlias() behave inconsistent

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • Customer request
    • 2.5.6
    • None

    Description

      When i try to create an URLAlias with two dashes (from two special characters /-, the created URLAlias only contains one dash. This is bad enough, as we use URLAliases for migration purposes, and the current page has a url /lorem–ipsum.html which i want to redirect but cannot.

      Also, when i check, if this url exists, it fails, but creating fails also

      // Throws a NotFoundException
      $urlAliasSvc->lookup('/lorem--ipsum.html');
      
      // Throws an InvalidArgumentException
      $urlAliasSvc->createUrlAlias($location,'/lorem--ipsum.html','eng-GB',true);

      It would be great if the double-dash conversion was beeing removed, parameterized or at least transparent.

      Attachments

        Activity

          People

            Unassigned Unassigned
            9dcdb0dd-5caa-459b-93b0-1ce97332c3fa@accounts.ibexa.co Hannes Giesenow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: