When I updated to 6-x-1.7, I get malformed redirection url upon search, something like http://www.example.comhttp://www.example.com/mysearch, I had to comment

$base_redirect = /*'http' . ((isset($_SERVER['HTTPS']) || $_SERVER['SERVER_PORT'] == 443) ? 's' : '') . '://' . $_SERVER['HTTP_HOST'] .*/ url();

and it worked correctly, ie url() returns the correct path..Will this change cause me problem in an other situation??

Comments

jdanthinne’s picture

Are you using a custom search path? In this case, can you tell me the path you entered?

mikaoelitiana@gmail.com’s picture

No I don't use any custom search path (I mean those defined in admin > settings > custom_search > Custom search paths)

jdanthinne’s picture

Can you try the DEV version? Many changes have been made since 6.x-1.7.

prathK’s picture

Hi,

I have tested the same with the DEV version.
It seems to be working fine with me.
also the following code is not present in latest DEV version.

$base_redirect = /*'http' . ((isset($_SERVER['HTTPS']) || $_SERVER['SERVER_PORT'] == 443) ? 's' : '') . '://' . $_SERVER['HTTP_HOST'] .*/

in short DEV version has fixed the same. :)

regards,
PrathK

prathK’s picture

Status: Active » Fixed

Fixed in the latest DEV version.

mikaoelitiana@gmail.com’s picture

Yes the bug is now fixed, thks

tree2009’s picture

Version: 6.x-1.7 » 6.x-1.x-dev

the same bug is coming again, though I updated to 6.x-1.9 and 6.x-1.x-dev. the bug is still there. finally, I open file custom_search.module in modules/custom_search, search "$base_redirect" in the file. find the code

else $form_state['redirect'] = $base_redirect . $search_path;
 

change it as

else $form_state['redirect'] = $search_path;
 

it works for me, it is tested in version 6.x-1.x-dev.

mxt’s picture

Tracking: I have the same issue and #7 resolve it

Thank you

Status: Fixed » Closed (fixed)

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

mxt’s picture

Status: Closed (fixed) » Active

We are hoping for a response from maintainer

jdanthinne’s picture

I've just pushed changes to DEV version, with a new way of generating the final URL (with the url() function).
Please test and review (DEV will be available tomorrow), or use this patch : http://drupalcode.org/project/custom_search.git/patch/d9071f0

heddn’s picture

Status: Active » Fixed

I'm taking some liberty but a support request from 2011 is probably fixed or irrelevant. If you disagree, please reopen and provide more details.

Status: Fixed » Closed (fixed)

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