After installing 6.x-1.6 the title of the search results page changed from 'Search' to 'Home'.

Tracked the problem to Chaos Tools Page Manager. Once that was disabled the title changed back from Home to Search.

CommentFileSizeAuthor
#14 search-ctools.patch3.26 KBjastraat

Comments

gooddesignusa’s picture

I just ran into the same issue.
Subscribing

gooddesignusa’s picture

in the mean time i got around this by adding this to my search-result.tpl.php file since I was already using it to remoe the $info.

<?php drupal_set_title('Search'); ?>
mrgavindb’s picture

Same problem. Would love to find a solution. Right now, the above solution is probably the best solution.

gooddesignusa’s picture

The solution I used above only worked if there were results. Searching a word that had no results still showed Home for the title.

I ended up throwing this in my template.php inside the preprocess_page function.
I'm in no way an expert using template.php and there is most likely a better way to do it but this works for the time being.

//workaround for ctools search issue//
if ( arg(0) == 'search' ) {
	$vars['breadcrumb'] = str_replace(" home "," Search ",$vars['breadcrumb']);
	$vars['head_title'] = str_replace("Home"," Search ",$vars['head_title']);
	$vars['title'] = 'Search'; 		
}
yan’s picture

Same here. The only workaround that works for me is #2. It'd be better to use t() to translate the title, too:

drupal_set_title(t('Search'));

dawehner’s picture

Status: Active » Closed (duplicate)
yan’s picture

I'm not sure if this is really a duplicate, but let's see if resolving 655730 solves the problem...

mrtorrent’s picture

subscribing

grendzy’s picture

merlinofchaos’s picture

Status: Closed (duplicate) » Active

Core is having this problem in D7, too. We should be able to fix it the same way it is fixed in D7 (as what I did with the tabs is quite similar to the solution we came up with for core).

grendzy’s picture

Thanks merlin. Sorry about the issue churn.

BTW, if someone is looking for a quick workaround simply removing the file ctools/page_manager/plugins/tasks/search.inc seems to work (assuming you don't plan to use panels to display the search pages).

merlinofchaos’s picture

Status: Active » Fixed

Checked in a fix for this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jastraat’s picture

StatusFileSize
new3.26 KB

Just in case anyone else is looking for this specific patch

truyenle’s picture

version 6.x-1.8 does fix this issue cool!

Thanks