From 243f5b689cf2247c1f9dcea61367ee8f6544518c Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Sat, 16 Sep 2017 16:52:04 +0200 Subject: [PATCH] fixed advanced search first rquest bug (bois+translucide) fix #31 --- .../gui/materiobasemod/materio_search_api_ajax.pages.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sites/all/modules/gui/materiobasemod/materio_search_api_ajax.pages.inc b/sites/all/modules/gui/materiobasemod/materio_search_api_ajax.pages.inc index 1969b657..e4b168bf 100755 --- a/sites/all/modules/gui/materiobasemod/materio_search_api_ajax.pages.inc +++ b/sites/all/modules/gui/materiobasemod/materio_search_api_ajax.pages.inc @@ -23,6 +23,7 @@ function materio_search_api_ajax_search($page = 0){ $keys_encoded = rawurlencode($keys); $path = $search_path . '/' . $keys;//. ($page ? '?page='.$page : ''); + $encoded_path = $search_path . '/' . $keys_encoded; // check if request is ajax, if not rediret to search_api_page page with right keys if (!$debug && (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest')) { @@ -70,7 +71,7 @@ function materio_search_api_ajax_search($page = 0){ // dsm($matches, '$matches'); if($cur_is_search_path === false){ $rep = array( - "redirect" => $base_url.base_path().$prefix.$path, + "redirect" => $base_url.base_path().$prefix.$encoded_path, ); drupal_json_output($rep); exit;