Tjones has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/241098

Change subject: Add ids to "Did you mean" links so they can be distinguished
......................................................................

Add ids to "Did you mean" links so they can be distinguished

We need to know what's what so we can tag them and log when a user
clicks on a "Did you mean" link--whether suggestion, rewritten
query, or original query.

Bug: T110359
Change-Id: I77048275063afe1e6e2f4f87eb91ad3576f49a07
---
M includes/specials/SpecialSearch.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/98/241098/1

diff --git a/includes/specials/SpecialSearch.php 
b/includes/specials/SpecialSearch.php
index 06cad42..8a6cecc 100644
--- a/includes/specials/SpecialSearch.php
+++ b/includes/specials/SpecialSearch.php
@@ -436,7 +436,7 @@
                $suggest = Linker::linkKnown(
                        $this->getPageTitle(),
                        $textMatches->getSuggestionSnippet() ?: null,
-                       array(),
+                       array('id' => 'cirrusDYMsuggestion'),
                        $stParams
                );
 
@@ -470,7 +470,7 @@
                $rewritten = Linker::linkKnown(
                        $this->getPageTitle(),
                        $textMatches->getQueryAfterRewriteSnippet() ?: null,
-                       array(),
+                       array('id' => 'cirrusDYMrewritten'),
                        $stParams
                );
 
@@ -479,7 +479,7 @@
                $original = Linker::linkKnown(
                        $this->getPageTitle(),
                        htmlspecialchars( $term ),
-                       array(),
+                       array('id' => 'cirrusDYMoriginal'),
                        $stParams
                );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/241098
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I77048275063afe1e6e2f4f87eb91ad3576f49a07
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Tjones <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to