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

Unable to add the same URL alias for other languages (patch)



    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: 4.0.7, 4.1.4, 4.2.0, 4.3.0
    • Component/s: Language
    • Labels:
    • Environment:

      eZ Publish 4.0 FUA


      When trying to add an URL alias to a node (content/urlalias/) where an URL alias already exists in another language, the following error message is produced:

      The URL alias <</path/to/node>> already exists, and it points to <<content/view/full/424242>>

      This is not a problem for generated aliases (those that are made automatically based on the name of the object). If the objects name is the same in several languages, the url will also be the same. It is inconsistent that you can't do this with custom url aliases.

      The patch allows you to have custom url aliases with the same name, provided that the languages are different.

      NB: The patch is only tested on ezp 4.0, and only minimally at that. Do not use in production!

      Steps to reproduce

      0. Have a site with at least two languges configured.
      1. Go to a node in admin, in the context menu choose "Manage URL aliases", get redirected to /content/urlalias/<node_id>
      2. Enter a name in "URL alias name", select a language, uncheck "Alias should redirect to its destination" and click "Create".
      3. Repeat step 2 with the same name but a different language. Get the error message:
      The URL alias <</path/to/node>> already exists, and it points to <<content/view/full/424242>>


          Issue Links



              • Assignee:
                gl (inactive) Gunnstein Lye
                gl (inactive) Gunnstein Lye
              • Votes:
                0 Vote for this issue
                1 Start watching this issue


                • Created: