How to fix active-class problem in minicalendar with calendar / exposed filters I have a calendar view for events. The events are categorized by taxonomy terms. I use the minicalendar for the selection of days and filter the result list with an exposed list of the categories.
This is all working fine.
But user interface lacks a bit of coherence. There's no indication of which day is picked on the minicalendar (which only has a class for &quot;today&quot;).
This snippet helped me getting an &quot;active&quot; class for the datebox, so users can see, which date they have chosen:
&lt;?php
function YOURTHEME_preprocess_calendar_datebox(&amp;$vars) {
  $url = $vars['url']; // The (absolute) URL of the item.
  $current = url(request_path(), array('absolute' =&gt; TRUE)); // The absolute URL of the page being viewed.
  if ($url == $current) {
    $classes = explode(' ', $vars['class']); // Extract the current classes as a list.
    $classes[] = 'active'; // Add 'active' to the class list.
    $vars['class'] = implode(' ', $classes); // Concatenate and attach the updated class list.
  }
}
?&gt;

But here's the problem: when i select a taxonomy term, the url changes from:
/myview/2014-11-27

to
/myview?field_category_tid_selective=8 (e.g)

and my active class is gone.
How can i achieve that the class stays, even when a filter is active on the results?
Any help appreciated!
Thx
Try next, that work without using urls, using second argument: 

function YOURTHEME_preprocess_calendar_datebox(&amp;$vars) {
  $arg = arg();

  // If no second argument provided - that's mean today. 
  // Please check how argument date supplied for next day: 2014-12-01 or 2014-12-1 and change date() to appropriate.
  $url_date = empty($arg[1]) ? date('Y-m-d') : $arg[1]; 

  if ($vars['date'] == $url_date) {
    $classes = explode(' ', $vars['class']); // Extract the current classes as a list.
    $classes[] = 'active'; // Add 'active' to the class list.
    $vars['class'] = implode(' ', $classes); // Concatenate and attach the updated class list.
  }
}