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

Wrong URL when redirecting from section assignment on platform

    Details

    • Sprint:
      Pollux Platform S14

      Description

      Steps to reproduce:

      1. Access PlatformUI

      2. Go to Admin Panel -> Sections

      3. Edit, for instance, section Standard, by clicking on far right Edit button

      4. Take notice of the URL you're at, while on editing context. It should be something like:
      http://ezp5.rui/shell#/admin/pjax%2Fsection%2Fedit%2F1

      5. Save the section. You'll get redirected to something like:
      http://ezp5.rui/pjax/section/view/1
      whereas it should be something like:
      http://ezp5.rui/shell#/admin/pjax%2Fsection%2Fview%2F1
      and the CSS's do not show correctly.

      Seems likely to be a regression caused by https://jira.ez.no/browse/EZP-24065

        Issue Links

          Activity

          Hide
          Damien Pobel (Inactive) added a comment -

          It's probably due to the fact that both ServerSideView and SectionServerSideView have an `events` property defining DOM event handlers and unfortunately, those properties are not merged together. We already had this issue in the past for instance between BinaryBaseEditView and ImageEditView. The solution is then the same as in https://github.com/ezsystems/PlatformUIBundle/blob/master/Resources/public/js/views/fields/ez-image-editview.js#L40 for instance.

          Show
          Damien Pobel (Inactive) added a comment - It's probably due to the fact that both ServerSideView and SectionServerSideView have an `events` property defining DOM event handlers and unfortunately, those properties are not merged together. We already had this issue in the past for instance between BinaryBaseEditView and ImageEditView. The solution is then the same as in https://github.com/ezsystems/PlatformUIBundle/blob/master/Resources/public/js/views/fields/ez-image-editview.js#L40 for instance.
          Hide
          Mateusz Hyndle added a comment -

          I am blocked with this one because I'm unable to open sections in Admin Panel, probably because of using version 2.7 of Symfony.

          Show
          Mateusz Hyndle added a comment - I am blocked with this one because I'm unable to open sections in Admin Panel, probably because of using version 2.7 of Symfony.
          Hide
          Mateusz Hyndle (Inactive) added a comment - - edited

          Same problem appeared after implementing https://jira.ez.no/browse/EZP-24536 so following PR resolves also the same problem when redirecting from edit content type form.
          PR: https://github.com/ezsystems/PlatformUIBundle/pull/274

          Show
          Mateusz Hyndle (Inactive) added a comment - - edited Same problem appeared after implementing https://jira.ez.no/browse/EZP-24536 so following PR resolves also the same problem when redirecting from edit content type form. PR: https://github.com/ezsystems/PlatformUIBundle/pull/274
          Show
          Mateusz Hyndle (Inactive) added a comment - Merged into master: https://github.com/ezsystems/PlatformUIBundle/commit/9c4e21a53a70ee33a11f2480a51a45e9cf5b01a4
          Hide
          Rui Silva (Inactive) added a comment -

          Tested and approved by QA for master.
          Fix for this issue also fixes the similar problem with Content Type editing.

          Show
          Rui Silva (Inactive) added a comment - Tested and approved by QA for master. Fix for this issue also fixes the similar problem with Content Type editing.

            People

            • Assignee:
              Unassigned
              Reporter:
              Rui Silva (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h

                  Agile