Needs review
Project:
Calendar
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2025 at 21:09 UTC
Updated:
10 Apr 2025 at 21:26 UTC
Jump to comment: Most recent
The Calendar module's pager does not generate correct URLs when used in non-page Views displays, such as blocks. This is because there is no route path to append the pager arguments to, so the current route is used, which may be inappropriate or incorrect.
Update the CalendarPager class to detect when the display has no base path (such as with blocks) and instead build pager links using query string parameters. Use the granularity as the key and append the argument value accordingly (e.g., ?month=2025-04).
CalendarPager to generate query string links as a fallback.Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
joelpittetThis is a quickfix but it needs a pager that reads the value too, though it is better than nothing as someone could write a Views argument or argument default plugin that would read from the query string.
Side comment in the issue summary I wrote
?month=2025-04even though I know in D8+ the month arg is inYmformat. I would like to see this easily configurable because?month=202504is practical but not a great hackable/human parseable URLComment #5
joelpittetComment #6
joelpittet