Active
Project:
Drupal core
Version:
main
Component:
media system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2023 at 14:28 UTC
Updated:
13 Jan 2026 at 11:16 UTC
Jump to comment: Most recent
Follow-up from #3348789: Compress ajax_page_state.
// Once we have validated the required parameters, we restore the parameters
// from the request since there might be additional values.
$state->replace($query->all());
Ideally this would use an allow-list of query parameters instead of grabbing everything out of the query.
Comments
Comment #2
yonailoI am seeing duplicate "&page" parameters when we use the pagination of the media library widget, I think
woud be needed as it has recently been done with "ajax_page_state" .... I dont understand why the grabbing of all the query string parameters is done here :(
Comment #3
codebymikey commentedProbably a duplicate of #3308719: Media Library views fail to reset pager when filters are applied
Comment #4
neclimdulFeels like maybe the whole train of issues down that link are caused by this and the complexity it causes. Probably need to fix the underlying issue instead of chasing our tail trying to fix every edge case caused by it.
Comment #5
catch