Clicking cancel on the delete view confirmation page should redirect back to the view

Created on 22 March 2024, 9 months ago
Updated 26 March 2024, 9 months ago

Problem/Motivation

If you are on a view, for example /admin/structure/views/view/media, and select the delete view option in the drop button next to the edit view name/description button on top, you are forwarded to a confirmation page. By clicking the delete button you would proceed removing the view, but if you change your mind and click the cancel button, instead of being directed back to the media view you are forwarded back to /admin/structure/views. being redirected to the views overview page is sort of unexpected.

Steps to reproduce

  • Go to /admin/structure/views/view/media
  • click the drop button for edit view name/description and click the option delete view
  • on the confirmation page click cancel

Proposed resolution

simply redirect back to the views page the delete view option was clicked on and do not forward to /admin/structure/views. the user should be brought back to the point where the journey started not send somewhere else.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
Views UIΒ  β†’

Last updated 21 days ago

Created by

πŸ‡©πŸ‡ͺGermany rkoller NΓΌrnberg, Germany

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

  • Issue created by @rkoller
  • πŸ‡³πŸ‡±Netherlands Lendude Amsterdam

    All other 'delete' operations in core trigger a dialog as far as a little clicking around could show me, so cancel there just leaves you on the current page. This is also what the delete option in the Views list does. Wouldn't it make more sense/be more consistent to have the delete option in the View Edit screen also trigger a dialog?

Production build 0.71.5 2024