The 'cached version' link displaying in search results was broken for me. It was adding an additional 'http' when being passed through the l() function. The module's host name field instructions say "Your Google Search Appliance host name or IP address (with http:// or https://), which were assigned when the appliance was set up." Leaving the 'http://' off caused issues, so supplying it and changing this line in theme_google_appliance_cached_link() fixed it for me.


$url = 'http://'. $google_appliance_host_name .'/search?q=cache:'. $cid .':'. $matches[1] . $keys . '&proxystylesheet=' . $google_appliance_default_client;
return l('cached version', $url);

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vinmassaro’s picture

Status: Active » Needs review
FileSize
1 KB

Patch attached.