[BUGFIX] Preserve page layout position after container actions - #767
[BUGFIX] Preserve page layout position after container actions#767infabo wants to merge 1 commit into
Conversation
|
Hi @infabo |
|
Hi @achimfritz
I am not going to "advertise" that feature to core maintainers. Submitting a core patch is kind of effort, you have to persuade core members of the "why this is needed". A very difficult part. In first place, the main reason, this PR should fix the close/save not returning to the correct position in page layout view again. This is an established and known core behaviour - and should also be functioning inside a container. Would you merge this PR when I remove the "delete" handling? Nobody would miss it anyways and it simplifies the PR. Thanks |
Problem
In the TYPO3 page layout, creating, saving, or deleting a child content element inside a large container returns editors to the top of the module. This is particularly
disruptive for containers with many nested records and backend previews.
TYPO3 already preserves the current position for visibility toggles by adding a content-element fragment to the action URL. Container child create and delete actions did
not provide an equivalent target.
Solution
returnUrlfor both the new-content wizard and the direct record editor.RecordInterfacerecords.Verification
AI disclosure
This pull request, including its implementation, tests, and description, was generated by OpenAI Codex using the GPT-5 model. The resulting changes were verified through
automated functional, acceptance, static-analysis, and coding-style checks.