#109504Form manager does not restore list position after closing the editor
Description
*Problem*
When opening a form for editing from the form manager list, the close button in the form editor always redirects back to the first page of the list. Regardless of which page, search term or sort order was active before opening the editor.
*Steps to reproduce*
1. Open the Form module in the TYPO3 backend
2. Navigate to page 2 or later (or apply a search/sort)
3. Click “Edit” on any form
4. In the form editor, click the close/back button
*Expected result*
The user is returned to the same list page and state (pagination, search term, sort order) they were on before opening the editor.
*Actual result*
The user is always redirected to page 1 of the list with no active filters or sort order.
*Fix*
Capture the current request URI in indexAction() and pass it as returnUrl when building the edit URLs in getAvailableFormDefinitions().
—-
TYPO3 Version: 14.x (and likely 13.x)
Severity: Minor