diff --git a/pages/UI.php b/pages/UI.php index f94cfdb94..a9668f562 100644 --- a/pages/UI.php +++ b/pages/UI.php @@ -574,7 +574,7 @@ try case 'full_text': // Global "google-like" search $oP->DisableBreadCrumb(); - $sQuery = trim(utils::ReadPostedParam('query', '', 'raw_data')); + $sQuery = trim(utils::ReadParam('text', '', false, 'raw_data')); $iTune = utils::ReadParam('tune', 0); if (empty($sQuery)) { diff --git a/sources/application/UI/Base/Component/GlobalSearch/GlobalSearch.php b/sources/application/UI/Base/Component/GlobalSearch/GlobalSearch.php index b09e869e4..1205526f8 100644 --- a/sources/application/UI/Base/Component/GlobalSearch/GlobalSearch.php +++ b/sources/application/UI/Base/Component/GlobalSearch/GlobalSearch.php @@ -42,7 +42,7 @@ class GlobalSearch extends UIBlock 'js/components/global-search.js', ]; - public const DEFAULT_ENDPOINT_REL_URL = 'pages/UI.php?operation=full_text'; + public const DEFAULT_ENDPOINT_REL_URL = 'pages/UI.php'; /** @var string $sEndpoint Absolute endpoint URL of the search form */ protected $sEndpoint; diff --git a/templates/base/components/global-search/layout.html.twig b/templates/base/components/global-search/layout.html.twig index 8a2b60ec4..0bd9e72b3 100644 --- a/templates/base/components/global-search/layout.html.twig +++ b/templates/base/components/global-search/layout.html.twig @@ -1,9 +1,10 @@