I have a view which is displayed from a theme method using views_get_view() and view::preview (see below). This view has an exposed filter. Unfortunately the exposed filter form does not work. When I submit the form it calls the wrong URL.
The wrong URL looks like this
http://domain?date_start=12
For comparison, the link of the sortable columns (which work as expected) does look like this:
http://domain/myselfcare/communications?order=destination&sort=asc&date_start=12
How can I fix this?
function theme_win_care_communications_page( $customer, $form, $form_state) {
global $user;
$output = '';
watchdog('win_care', 'communications_page user=' . $user->uid . ', cust=' . $customer->id);
$communications_view = views_get_view('drp_communications');
$output .= $communications_view->preview('default', array($user->uid));
// add an explanatory text
if ($customer->reseller_id==33) { // mbudget only
$output .= t('Note M-Budget: tariff is a function of the call time (in lots of 10 cents).');
}
else {
$output .= t('Note: setup fee of 0.50 per call, minute rate according to current tariffs');
}
return $output;
}