Page MenuHomePhabricator

create item link on Special:Search assumes ordinary wikitext pages
Closed, ResolvedPublic

Description

When searching on Special:Search, a suggestion is given to create a new page with the given search term if an exact match is not found.

e.g. 'Create the page "Berlin" on this wiki!'

https://test.wikidata.org/w/index.php?title=Special:Search&profile=default&search=Prague&fulltext=Search&uselang=es

It is possible to disable this via a hook it items are in the main namespace. On Wikidata (in some languages), the message is set to an empty message so nothing appears.


Version: master
Severity: minor
Whiteboard: u=dev c=frontend p=0 papercut

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:26 AM
bzimport set Reference to bz56032.
bzimport added a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).

Change 232017 had a related patch set uploaded (by Ricordisamoa):
Bail out when trying to "create" entity pages

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

I went for TitleQuickPermissions instead of SpecialSearchCreateLink since the former seemed broader in scope.
Anyway it'd be fairly easy to switch them as you please.

BTW the message could still be customized as "searchmenu-new-nocreate" (empty by default).

Change 232017 merged by jenkins-bot:
Bail out when trying to "create" entity pages

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

daniel moved this task from Review to Done on the Wikidata-Sprint-2015-08-18 board.
daniel subscribed.

Change 349446 had a related patch set uploaded (by Hoo man):
[mediawiki/core@master] Check supportsDirectEditing when suggesting page creation

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

Change 349446 merged by jenkins-bot:
[mediawiki/core@master] Check supportsDirectEditing when suggesting page creation

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