#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 <span data-processor="relativetime" data-value="2026-07-27T14:02:48+00:00" > 07/27/26, 14:02 </span> -
Alexander Künzl commented <span data-processor="relativetime" data-value="2026-07-27T14:07:01+00:00" > 07/27/26, 14:07 </span>
-
Josua Vogel commented <span data-processor="relativetime" data-value="2026-07-28T14:51:34+00:00" > 07/28/26, 14:51 </span>
Yes, in my opinion the currentPage should be reseted too
-
Gerrit Code Review pushed patch set 2 for main to change 94955 <span data-processor="relativetime" data-value="2026-07-30T06:54:50+00:00" > 07/30/26, 06:54 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 94955 <span data-processor="relativetime" data-value="2026-07-30T07:19:28+00:00" > 07/30/26, 07:19 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 94955 <span data-processor="relativetime" data-value="2026-09-02T11:47:54+00:00" > 09/02/26, 11:47 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 95805 <span data-processor="relativetime" data-value="2026-09-14T08:16:31+00:00" > 09/14/26, 08:16 </span>
-
Alexander Künzl commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-09-14T08:20:09+00:00" > 09/14/26, 08:20 </span>Applied 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?