- Issue created by @catch
- πΊπΈUnited States bkosborne New Jersey, USA
I think I ran into this today. Received reports that someone could not browse past the 2nd page of a media library when browsing from the widget. I observed that the request header size grew to over 8kb which was the limit in Varnish. Inspecting the request, I see that a ton of the query string parameters are being duplicated on each page load.
- πΊπΈUnited States bkosborne New Jersey, USA
I just spent an hour trying to figure out why duplicate params are being added. I still have no idea unfortunately. Paging through the media library directly (outside of the field widget) doesn't cause the duplicates issue. It's just within the media library widget. So I have to think it's something in either media_library.view.js or media_library.widget.js, but I can't find any obvious places to start debugging.
I guess this is less of a problem on 10.2.x because the libraries param of the ajax page state is compressed β , but I don't plan to upgrade our sites to 10.2.x for a couple more months.
- π¦πΊAustralia acbramley
I've just run into this with a client as well, this is on Drupal 10.3.2 (also reproducible on 10.2.6). It only happens on AWS environments and only when editing a node, not adding. Exposed filters work fine as well as exposed sorts.
The difference between editing and adding a node is down to query param length
When editing a node the query param is 2162 characters long
When adding a node the query param is 1938 characters longThis is referring to the number of characters appearing after
/views/ajax?
when clicking a pagination link in the media library on the above mentioned screens