Page MenuHomePhabricator

Searching for an IP address in MediaWiki search bar should not take you to that IP's contributions
Closed, ResolvedPublicFeature

Description

Steps to reproduce:

  1. go to https://en.wikipedia.org/
  2. enter 1.2.3.4 in the search bar and press enter

Expected behavior: you see a search results page

Actual behavior: you are forwarded to Special:Contributions/1.2.3.4.

I don't think this behavior makes any sense.

Details

Related Changes in Gerrit:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Interesting: also not my expected behavior. But it looks like according to the help page, this is actually expected behavior (not a bug): https://en.wikipedia.org/wiki/Help:User_contributions#Accessing

Also, if you select the option to "Search for pages containing 1.2.3.4", you'll get the expected search results page. It seems like at some point, somebody added a feature to quickly search for contributions based on IP

Screen Shot 2022-04-18 at 13.45.48.png (1×1 px, 187 KB)

Apparently it was added in 2004: rMW7c98afbdb7ae: Handy shortcut: paste in an IP address and click go, redirects to the user… Makes sense on a small wiki, I suppose. It's configurable via $wgEnableSearchContributorsByIP - maybe time to disable it for Wikimedia wikis? It's probably more common that a reader would want to search for an IP-like string than an editor relying on this feature to check an IP's contributions, when we have navpopups etc. these days. (cc @tstarling)

Gehel triaged this task as Low priority.Apr 20 2022, 7:40 PM
Gehel moved this task from needs triage to Feature Requests on the Discovery-Search board.

This is incredibly annoying on checkuser.wikimedia.org, where searching the wikitext for IPs is kinda the whole point.

Aklapper renamed this task from Searching for an IP address in the MediaWiki search bar takes you to that IP's contributions to Searching for an IP address in MediaWiki search bar should not take you to that IP's contributions.Jun 1 2025, 10:04 PM
Aklapper changed the subtype of this task from "Bug Report" to "Feature Request".
Aklapper removed a subscriber: MPhamWMF.

With temporary accounts now in place, maybe it is time to let go of this ?

Change #1185262 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/core@master] Remove wgEnableSearchContributorsByIP

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

With temporary accounts now in place, maybe it is time to let go of this ?

Seems reasonable to me, should we tag User-notice?

Change #1185262 merged by jenkins-bot:

[mediawiki/core@master] Remove wgEnableSearchContributorsByIP

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

With temporary accounts now in place, maybe it is time to let go of this ?

Seems reasonable to me, should we tag User-notice?

I've added a quick entry to https://meta.wikimedia.org/wiki/Tech/News/2025/38

DanishAhmedKm removed TheDJ as the assignee of this task.
DanishAhmedKm raised the priority of this task from Low to High.
JJMC89 lowered the priority of this task from High to Low.Sep 22 2025, 4:21 PM
Jdforrester-WMF raised the priority of this task from Low to High.

this was completed and deployed.

100592 removed TheDJ as the assignee of this task.
100592 lowered the priority of this task from High to Low.
A_smart_kitten assigned this task to TheDJ.