Issue #522914: Numbered week links on side of Month view don't work... pointed out this problem in the main Calendar module, however the fix was not applied to the multiday sub module.

The function 'calendar_build_month' will display week numbers at the beginning of each week that should link to the weekly view for that month. The url generated for that link does not use the function date_real_url() to create the url.

Attached is the patch to fix the issue.


jjemmett’s picture

Version:6.x-2.4» 7.x-3.x-dev
Issue summary:View changes
new841 bytes

I've just installed calendar on Drupal 7 and noticed that this issue is still there also. Updating the version and status. Also attaching a version appropriate patch file for drupal 7. date_real_url is no longer in the date_api module. converted code to use date_pager_url().

One thing I ran into was that using the path returned by calendar_granularity_path($view,'week') was creating an error in the resultant url. I had to remove the path from the date_pager_url so it didn't get doubled. If someone can show me how to create the url the "right way" I would appreciate it.