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

As an editor, I want to see an accurate url and title when I submit a form in the admin part of the PlatformUI

    XMLWordPrintable

Details

    Description

      Currently (with the patch in EZP-23583), after creating a section, the section is displayed (good!) but the URL is /shell#/admin/pjax%2Fsection%2Fcreate and the title is still Creating a new section. This is happening because the form is submitted with an XmlHttpRequest and the server generates a redirection. Unfortunately, it's impossible to prevent the browser from following this redirection. So the idea is to be able to achieve a kind of redirection in the admin part of the PlatformUI so that the JS app changes its URL and the title is updated.

      So, when submitting a form, when everything is OK, the Pjax response should have the status code 205 with a custom header PJAX-Location where this header would point to the PJAX Uri to load to display the result.

      Examples with the sections:

      • after a section creation, the header value would be /pjax/section/view/XXX
      • after a section update, the header value would be /pjax/section/view/XXX
      • after a section removal, the header value would be /pjax/section/list

      Attachments

        Activity

          People

            Unassigned Unassigned
            damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: