I'm trying to display a drupal view in a CiviCRM contact tab. I've tested out my tab function with the code snippet on hook_civicrm_tabs and it will show the contribution tab correctly, and I've tested out my drupal view url on its own with a contact id appended and that displays correctly, but when I try to use my code to display the view in the tab, after I click the tab I get a civicrm error pop up message that says "Network Error Unable to reach the server. Please refresh this page in your browser and try again."
Here is my code
function mymodule_civicrm_tabs(&$tabs, $contactID) {
$url = '/civicrm-videos/'. $contactID;
$tabs[] = array( 'id' => 'projectTab',
'url' => $url,
'title' => 'Projects',
'weight' => 300,
'count' => '2' );
}
What am I doing wrong?