Fix for issue with search_type query parameter in template.php-generated links.