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.
Numbered week links on side of Month view don't work like Year Month Day Prev Next links. It doesn't consider the URL like the others do.
I have a taxonomy term inserted in the URL: calendar/term/2009-07
I didn't dig too deeply, but maybe it doesn't use date_real_url()?
Comment | File | Size | Author |
---|---|---|---|
#2 | calendar-552914-1.patch | 743 bytes | jjemmett |
Comments
Comment #1
VladRM CreditAttribution: VladRM commentedHello,
I have the same problem.
The weekno links are built in:
- calendar.inc
-> function calendar_build_week(&$curday, $view, $items, $check_month = FALSE) {...}
-> line 97: $url = $view->get_path() .'/'. $view->date_info->year .'-W'. $week;
I did a dirty hack but this is clearly not the right way to go:
Please help fix this issue.
Comment #2
jjemmett CreditAttribution: jjemmett commentedHere is a patch we use to fix this issue. As the original poster noted, date_real_url is not being used when it should be.
Comment #3
jjemmett CreditAttribution: jjemmett commentedchanging status to 'needs review'
Comment #4
Gribnif CreditAttribution: Gribnif commentedWorks for me. RTBC, IMHO.
Comment #5
jmcclelland CreditAttribution: jmcclelland commentedWorks for me too. And I was able to apply it to the current (Aug 22, 2010) calendar dev version. Please include!
thanks,
jamie
Comment #6
SaxxIng CreditAttribution: SaxxIng commentedSame problem to me too. And patch suggest on #2 works very well. Please include on next release.
Thanks a lot,
Saxx
Comment #7
KarenS CreditAttribution: KarenS commentedCommitted. Thanks!