Hello,
When I type some search and submit, the search form redirect on this type of url :
http://my-domain-namehttp://my-domain-name/search/node/my-research.

As you can see, I've got twice http://my-domain-name.

I'll try to modify the code of custom_search_submit(), but I think this should be solved.

Thanks for your module.

Comments

anou’s picture

The problem comes from line 383 :
$base_redirect = 'http' . ((isset($_SERVER['HTTPS']) || $_SERVER['SERVER_PORT'] == 443) ? 's' : '') . '://' . $_SERVER['HTTP_HOST'] . url();

I had to change it for :
$base_redirect = url();
to make the search redirect correctly.

jdanthinne’s picture

Status: Active » Closed (duplicate)

Duplicate of #1009280: search block directly leads to 404 page.
Just pushed changes to DEV regarding this bug.
Please test and review there please.