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

lookup() and createUrlAlias() behave inconsistent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: InputQ
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 2.5.6
    • Fix Version/s: Customer request
    • Component/s: None
    • Labels:

      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

            Assignee:
            Unassigned
            Reporter:
            hannes.giesenow@elbformat.de Hannes Giesenow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: