Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We have a calendar view that has several filters on it, including an exposed multi-select term widget.
When paginating back and forth between days/months/years using the calendar pagination, the selected options for the multi-select are lost.
Looking at the url, the options for that filter look like "&foo[]=1".
However, the links in the pagination corrupt that to look like "&1=1".
Comments
Comment #2
jeremylichtman CreditAttribution: jeremylichtman as a volunteer and for Cheeky Monkey Media commentedComment #3
jeremylichtman CreditAttribution: jeremylichtman as a volunteer and for Cheeky Monkey Media commentedThe following work-around is based on the one posted in (https://www.drupal.org/node/2744299#comment-11271393), but has been modified to deal with "array" type parameters in a way that doesn't break the pagination links.
Comment #4
akalata CreditAttribution: akalata commented@jeremylitchman thanks for providing this workaround -- solves the issue for me!
I added a
@see https://www.drupal.org/node/2901061
to the docblock so I can remember to check back here and remove the code when the issue is actually fixed -- you may want to edit your code for others who copy/paste it. :)Comment #5
huijse CreditAttribution: huijse as a volunteer and commentedThanks! This code fixed my issue as well with a copy paste.
Comment #6
Neslee Canil Pinto