Issue Bug Resolved

#110266Backend / Filelist: Clearing search query and paginating restores previous search term

Nikolas Hagelstein 07/22/26, 15:32 updated 09/14/26, 08:20

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

  1. Open the Media / Filelist module in the TYPO3 Backend.
  2. Select any folder containing enough files/folders to trigger pagination.
  3. Enter a search query into the search bar (e.g., “2022”) and submit/execute the search.
  4. Clear the search input field (remove “2022”).
  5. Submit/execute the empty search to restore the full file list.
  6. 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

  1. Gerrit Code Review pushed patch set 1 for main to change 94955 status New Under Review 07/27/26, 14:02

  2. Alexander Künzl commented 07/27/26, 14:07

    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?

  3. Josua Vogel commented 07/28/26, 14:51

    Yes, in my opinion the currentPage should be reseted too

  4. Gerrit Code Review pushed patch set 2 for main to change 94955 07/30/26, 06:54

  5. Gerrit Code Review pushed patch set 3 for main to change 94955 07/30/26, 07:19

  6. Gerrit Code Review pushed patch set 4 for main to change 94955 09/02/26, 11:47

  7. Gerrit Code Review pushed patch set 1 for 14.3 to change 95805 09/14/26, 08:16

  8. Alexander Künzl commented and changed status Under Review Resolved done 0 % 100 % 09/14/26, 08:20

    Applied in changeset commit:e8f404d5bf4d7267cd57f1c71d7a9964fb0d4ee1.