Save & edit button does not stay on xntt type edit page when the query string has a "destination" set

Created on 10 October 2024, 2 months ago

Problem/Motivation

The purpose of the "Save & edit" button on the external entity type edit page is to stay on the edition page and avoid going back to the external entity type list. It works well unless a "destination" is set in the page query string, which overrides the redirection to the edition page.

Steps to reproduce

Use the edit links on the external entity types list page as they include the 'destination' query string. Use the "Save & edit" button and you got back to the list instead of the edition page.

Proposed resolution

Disable the "destination" redirection when using the "Save & edit" button.

Remaining tasks

Investigate how to disable the "destination" redirection when using the "Save & edit" button.
Maybe handled by the site Request object ($request = \Drupal::request();)?
How to change that in the ExternalEntityTypeForm class (around line 1243)?

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France guignonv

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

Comments & Activities

Production build 0.71.5 2024