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:
Roan Kattouw 2014-10-21 18:34:27 -07:00
parent e1b20bee65
commit 942440c7df

View file

@ -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.