Page MenuHomePhabricator

go-search for non-existing page in a namespace returns broken new-edit URL
Closed, ResolvedPublic

Description

Author: elian

Description:
If you enter a a non-existing page with a namespace (Wikipedia:Foobar) in the
search box and press go, the term is resolved to "Wikipedia Foobar" and
consequently a broken edit-link is displayed.

Reproducible on wikis which present edit-links on a failed search (f.e.
english/german wikipedia, on meta this seems to be disabled)

Originally reported by Tim Pritlove on german wikipedia.


Version: unspecified
Severity: normal

Details

Reference
bz54

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:46 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz54.

This is caused by abuse of the processed search term for link creation.

Don't do that, it is inherently unreliable.

Let's try pushing those buttons again and see if it's the right one.

Fix in CVS head and for 1.3.2 and installed on live wiki.

It now shows the search term as given in the subtitle and uses it as given to generate a title to use for creating the new link.