mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
Drop nonexistent &redirect= parameter from API requests
The correct parameter is &redirects=. Which we really don't want to use anyway, because if Foo->Bar, using &redirects=1 would cause a search for "Fo" to return "Bar" as a search suggestion with no explanation why (and "Foo" wouldn't be visible). This isn't unsurmountable, we could put in handling similar to how the category widget handles redirects, but what this code is trying to do by passing this parameter is definitely wrong. Change-Id: Idd12c03aaef897d7c1dc70b2a7692e7d71980efe
This commit is contained in:
parent
e1b20bee65
commit
942440c7df
|
@ -109,8 +109,7 @@ ve.ui.MWLinkTargetInputWidget.prototype.getLookupRequest = function () {
|
|||
gpssearch: this.value,
|
||||
gpsnamespace: 0,
|
||||
prop: 'info|pageprops',
|
||||
ppprop: 'disambiguation',
|
||||
redirect: ''
|
||||
ppprop: 'disambiguation'
|
||||
} );
|
||||
} else {
|
||||
// Don't send invalid titles to the API.
|
||||
|
|
Loading…
Reference in a new issue