When 'clean urls' are disabled in Drupal, what means all pathes
look like /?q=node/x, the q from the internal Drupal url is included
in the search. For example trying to access ?q=not/found the
module performs a seach for 'q not found', but it should search
for 'not found' only. At the moment (nearly) every search fail,
because q is not in the node titles in most cases.
(With clean url enabled all works fine). Thanks.

CommentFileSizeAuthor
#1 search404.patch839 bytesprofix898

Comments

profix898’s picture

Version: 4.7.x-1.x-dev » master
Status: Active » Reviewed & tested by the community
StatusFileSize
new839 bytes

OK. Its a very simple patch for that. I was not sure, you would
like me to commit this to cvs. So here the patch.

Regards, Thilo

profix898’s picture

I think you can also use $_GET['q'] instead of request_uri().
It always contains the parameter only and not the ?q= prefix.

larssg’s picture

Status: Reviewed & tested by the community » Fixed

This seems so be fixed with the patch for #58086 and #58147.

Anonymous’s picture

Status: Fixed » Closed (fixed)