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.
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);
Comment | File | Size | Author |
---|---|---|---|
#1 | cached_version_link_broken-1630652-2.patch | 1 KB | vinmassaro |
Comments
Comment #1
vinmassaro CreditAttribution: vinmassaro commentedPatch attached.