Editing a block_content entity no longer redirects to the overview

Created on 4 January 2024, 12 months ago
Updated 21 March 2024, 9 months ago

Problem/Motivation

Regression from πŸ“Œ Revisit the redirect to 'add block' form in the 'add block content' form Fixed

In Drupal 10.1, editing a block by default goes back to the collection.

On Drupal 10.2, it remains on that page.

This is specifically a problem when adding a translation, as that also stays on the same page, but then that results in an exception as the translation already exists.

Steps to reproduce

- On a fresh install
- Create a new block and save it (redirects to the blocks overview),
- Edit the block via directly navigating to the url (i.e do not click Edit from the overview as that will include a destination parameter
- Save the block again

Expected: Redirect to the overview page
Actual: Stay on the edit page

Proposed resolution

Fix the code to go back to overview on edit as well, not just for a new block

Remaining tasks

Create MR.

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

10.2 ✨

Component
Block contentΒ  β†’

Last updated 17 days ago

Created by

πŸ‡¨πŸ‡­Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024