#110266Backend / Filelist: Clearing search query and paginating restores previous search term
Description
Description
In the Media module (Filelist), if a user performs a search within a folder, clears the search input, triggers a search without a term, and then clicks to the second page using the pagination, the previously cleared search term is unexpectedly re-applied.
Steps to Reproduce
- Open the Media / Filelist module in the TYPO3 Backend.
- Select any folder containing enough files/folders to trigger pagination.
- Enter a search query into the search bar (e.g., “2022”) and submit/execute the search.
- Clear the search input field (remove “2022”).
- Submit/execute the empty search to restore the full file list.
- Click on page 2 in the pagination bar at the bottom.
Expected Result
Page 2 of the unfiltered folder content should be displayed without applying any search filter.
Actual Result
Page 2 is displayed, but the search term “2022” is automatically re-applied, filtering the view based on the old query again.
Environment
TYPO3 Version: 14.3.5
PHP Version: 8.4
Browser: Any
Reviews 2
History 38
-
Gerrit Code Review pushed patch set 1 for main to change 94955 status
NewUnder Review 07/27/26, 14:02 -
Alexander Künzl commented 07/27/26, 14:07
-
Josua Vogel commented 07/28/26, 14:51
Yes, in my opinion the currentPage should be reseted too
-
Gerrit Code Review pushed patch set 2 for main to change 94955 07/30/26, 06:54
-
Gerrit Code Review pushed patch set 3 for main to change 94955 07/30/26, 07:19
-
Gerrit Code Review pushed patch set 4 for main to change 94955 09/02/26, 11:47
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 95805 09/14/26, 08:16
-
Alexander Künzl commented and changed status
Under ReviewResolved done0 %100 % 09/14/26, 08:20Applied in changeset commit:e8f404d5bf4d7267cd57f1c71d7a9964fb0d4ee1.
I pushed a fix for this, the currentPage parameter also gets persisted in the form action uri, maybe this should be reset as well when submitting the search form?