I am using D7.0 and having trouble with the search form block.

When I search my site, the search results appear with a text summary of content and the author of the node. However, there is no actual link to the content itself. Am I missing something?

I've re-indexed my site about three times, run cron, cleared caches... nothing.

I appreciate your help!

Comments

neptunethemes’s picture

Maybe you've solved this already, but I just ran into the same problem -

In my case it was the theme - a snippet of javascript in scripts.js was breaking the link. I was using this to style the first word in block titles:

$('h3.title').each(function(){
          var bt = $(this);
         bt.html( bt.text().replace(/(^\w+)/,'<span class="first-word">$1</span>') );
});

And the search results use h3.title, too.

Changing to this solved it:

$('h3.block-title').each(function(){
          var bt = $(this);
         bt.html( bt.text().replace(/(^\w+)/,'<span class="first-word">$1</span>') );
});

Don't know if that helps you at all (unless you happen to be using one of our themes), but maybe provides a clue.

blair003’s picture

Then go to: Administration » Appearance » Settings (for marinelli)

Under Layout there is a setting "Do you want to hide block title for the external blocks?" If this is set to YES, then search titles and links will not show.

Set "Do you want to hide block title for the external blocks" to NO to resolve the issue on the search results page for marinelli.

smileeman2002’s picture

This Worked Blair003. Thank you. You guys are great on here!

sdrews’s picture

I suppose I shouldn't interject a D6 issue in a D7 conversation but I can't find info elsewhere. I've been searching for quite a while. I'm desperately hoping someone has the answer.

I want to use the search feature built into D6 but I get search results with no link. I am wondering if there is a similar setting (from the solution above) in 6?

Any help/insight will be appreciated.

diegoalejo15’s picture

Search links were working ok but now the result list is not showing links to redirect to each result, just text, how can I fix it?

Thanks & regards

marcocevoli’s picture

I have the same problem: search results page don't have links. My theme is Quasar from Rockettheme. Which file(s) should I modify or analyse to find out where the problem lies?

TIA

Marco

bluewebco’s picture

in your rocket theme template folder, open template.php.

About line 123, comment out this line:
$variables['uri'] = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

It doesn't seem to be a particularly useful line and took me ages to find. Removing it hasn't broken anything else (so far).

Zero4ffect’s picture

I realize that this thread is several years old but I just ran into this issue and figured I'd post my solution. For me, this problem was being caused by some custom node templates. Reverting the template code back to the default, (located in node.tpl.php), and then carefully modifying them to meet the use case fixed this for me.

Hopes this helps someone =)