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

Unable to add the same URL alias for other languages

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Done
    • Affects Version/s: Customer request, 5.4.9
    • Fix Version/s: Customer request, 5.4.11-rc
    • Component/s: Language
    • Labels:
      None

      Description

      When trying to add an URL alias to a node (content/urlalias/) where the same URL alias already exists in another language, the following error message is produced: The URL alias <</xxx>> already exists, and it points to <<content/view/full/xxx>>. As it is an alias for another language, it should be created anyway. Automatically generated aliases do not suffer from it and are created correctly even if they are the same (see attached screenshot).

      Steps to reproduce:

      1. Create fresh eZ Publish 5.4.9 installation with two languages configured (for example "English (United Kingdom)" and "Polish").
      2. Create a new object (for example article with name "Test article in two languages").
      3. Enter "Manage URL Aliases" for created object (from context menu or by going to /content/urlalias/<id>).
      4. Under the "Create new alias" set "URL alias name:" to "/test" and "Language:" to the first language (for example "English (United Kingdom)"). Click "Create" button. The URL alias will be created as expected.
      5. Under the "Create new alias" set "URL alias name:" to "/test" and "Language:" to the second language (for example "Polish"). Click "Create" button. The error message will appear: "The URL alias <</test>> already exists, and it points to <<content/view/full/63>>" (see attached screenshot).

        Issue Links

          Activity

          Hide
          Gunnstein Lye added a comment -

          Thanks. So in short, the language the alias was created in, must be configured for all siteaccesses where it will be used.

          Will you make a PR for the proposed patch?

          Show
          Gunnstein Lye added a comment - Thanks. So in short, the language the alias was created in, must be configured for all siteaccesses where it will be used. Will you make a PR for the proposed patch?
          Show
          Jacek Foremski added a comment - PR: https://github.com/ezsystems/ezpublish-legacy/pull/1302
          Hide
          Rui Silva added a comment - - edited

          PR tested and approved by QA for 5.4.
          Sending back to dev-needed so that PR can be merged.
          Please send back to QA afterwards so that QA can inform Support Team duly as according to procedure.

          Show
          Rui Silva added a comment - - edited PR tested and approved by QA for 5.4. Sending back to dev-needed so that PR can be merged. Please send back to QA afterwards so that QA can inform Support Team duly as according to procedure.
          Show
          André Rømcke added a comment - merged: https://github.com/ezsystems/ezpublish-legacy/commit/010906975e6584e36195a66c49b2032fadc43ba7
          Hide
          Eduardo Fernandes added a comment -

          QA Tested and approved

          Show
          Eduardo Fernandes added a comment - QA Tested and approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Jacek Foremski
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: