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)

    Details

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

      eZ Publish 4.0 FUA

      Description

      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

          Activity

          Hide
          (inactive) Gunnstein Lye added a comment -

          The customer found a workaround, this is not needed anymore.

          Show
          (inactive) Gunnstein Lye added a comment - The customer found a workaround, this is not needed anymore.
          Hide
          Yannick Modah Gouez added a comment -

          I dont understand why this issue has been closed and wont be implemented in future version. This feature is needed by many customers.

          Thank you for the patch anyway. Used a Kernel override.

          Show
          Yannick Modah Gouez added a comment - I dont understand why this issue has been closed and wont be implemented in future version. This feature is needed by many customers. Thank you for the patch anyway. Used a Kernel override.
          Hide
          ezrobot added a comment -

          This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          Show
          ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.
          Hide
          Gunnstein Lye added a comment -

          This issue has been raised again in https://jira.ez.no/browse/EZP-27474, and will be reconsidered there. Just adding here that what I described above as a workaround, was in fact a misconfiguration. The siteaccess in question did not have both the languages set up as site languages. Fixing that solved the issue, in that case.

          Show
          Gunnstein Lye added a comment - This issue has been raised again in https://jira.ez.no/browse/EZP-27474 , and will be reconsidered there. Just adding here that what I described above as a workaround, was in fact a misconfiguration. The siteaccess in question did not have both the languages set up as site languages. Fixing that solved the issue, in that case.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: