From c49b8bf0d59de2d7eeab788117967e77d0916ded Mon Sep 17 00:00:00 2001 From: Erik Bernhardson Date: Thu, 4 Oct 2018 07:44:09 -0700 Subject: [PATCH] search: Fix DYM typos in widget * DYM link was triggering the 'go' feature due to fulltext misspelled * all ids are of the form mw-search-*, except one. Make it the same (WikimediaEvents code was expecting everything to be mw-search-*) Bug: T206232 Change-Id: Ib91ccf28879b8af2a8c0f2a40b9fe3ec4259a730 --- includes/widget/search/DidYouMeanWidget.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/widget/search/DidYouMeanWidget.php b/includes/widget/search/DidYouMeanWidget.php index 4e5b76b69a..135b01d2aa 100644 --- a/includes/widget/search/DidYouMeanWidget.php +++ b/includes/widget/search/DidYouMeanWidget.php @@ -49,7 +49,7 @@ class DidYouMeanWidget { 'search' => $resultSet->getQueryAfterRewrite(), // Don't magic this link into a 'go' link, it should always // show search results. - 'fultext' => 1, + 'fulltext' => 1, ]; $stParams = array_merge( $params, $this->specialSearch->powerSearchOptions() ); @@ -67,7 +67,7 @@ class DidYouMeanWidget { $original = $linkRenderer->makeKnownLink( $this->specialSearch->getPageTitle(), $term, - [ 'id' => 'mwsearch-DYM-original' ], + [ 'id' => 'mw-search-DYM-original' ], $stParams ); -- 2.20.1