Closed (fixed)
Project:
Custom Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2011 at 13:42 UTC
Updated:
8 May 2013 at 20:50 UTC
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
Comment #1
jdanthinne commentedAre you using a custom search path? In this case, can you tell me the path you entered?
Comment #2
mikaoelitiana@gmail.com commentedNo I don't use any custom search path (I mean those defined in admin > settings > custom_search > Custom search paths)
Comment #3
jdanthinne commentedCan you try the DEV version? Many changes have been made since 6.x-1.7.
Comment #4
prathK commentedHi,
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
Comment #5
prathK commentedFixed in the latest DEV version.
Comment #6
mikaoelitiana@gmail.com commentedYes the bug is now fixed, thks
Comment #7
tree2009 commentedthe 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
change it as
it works for me, it is tested in version 6.x-1.x-dev.
Comment #8
mxtTracking: I have the same issue and #7 resolve it
Thank you
Comment #10
mxtWe are hoping for a response from maintainer
Comment #11
jdanthinne commentedI'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
Comment #12
heddnI'm taking some liberty but a support request from 2011 is probably fixed or irrelevant. If you disagree, please reopen and provide more details.