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

Double slash in url after having searched a default location for an object relation in class edit module

    Details

      Description

      When editing a content class in a specific language, if we set the default item for an object relation attribute we will get a double slash in the URL, for some reason.

      The issue is very easy to reproduce.


      Steps to reproduce:

      1. From the administration interface access the following location: /class/edit/45/(language)/fre-FR
      2. Add an object relation attribute to the class
      3. Set the default selection item by clicking the "Select item" button, and select a content object

      After selecting the content object the URL in the location bar will be:
      /class/edit/45/language/fre-FR//(language)/fre-FR

      There shouldn't be two slashes after fre-FR.
      Also, "language" is repeated. And the target translation is also added twice (fre-FR).

        Issue Links

          Activity

          Hide
          Gunnstein Lye added a comment - - edited

          PR: https://github.com/ezsystems/ezpublish-legacy/pull/1154

          The secondary complaint, that language occurs twice in URLs like /class/edit/45/language/fre-FR//(language)/fre-FR, is not fixed. It doesn't cause any problems for the issue reporter, and would require quite some rewriting of the class edit view, so I don't think it's worthwhile given that it's legacy.

          Show
          Gunnstein Lye added a comment - - edited PR: https://github.com/ezsystems/ezpublish-legacy/pull/1154 The secondary complaint, that language occurs twice in URLs like /class/edit/45/language/fre-FR//(language)/fre-FR, is not fixed. It doesn't cause any problems for the issue reporter, and would require quite some rewriting of the class edit view, so I don't think it's worthwhile given that it's legacy.
          Hide
          Gunnstein Lye added a comment -

          The double language is split out into separate issue https://jira.ez.no/browse/EZP-24203

          Show
          Gunnstein Lye added a comment - The double language is split out into separate issue https://jira.ez.no/browse/EZP-24203
          Show
          Gunnstein Lye added a comment - Merged in master: https://github.com/ezsystems/ezpublish-legacy/commit/895f414f98ccb3c48c7bd483a1742b1336945462
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved
          Tested on 4.7, 5.0, 5.1, 5.2, 5.3, 5.4 and master

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved Tested on 4.7, 5.0, 5.1, 5.2, 5.3, 5.4 and master

            People

            • Assignee:
              Unassigned
              Reporter:
              Ricardo Correia (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 54 minutes
                4h 54m