mw.widgets.TitleInputWidget: Don't bypass namespace choice with redirects
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 22 Jul 2015 00:16:20 +0000 (02:16 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 22 Jul 2015 00:16:56 +0000 (02:16 +0200)
commitd173acb4643ea85d7d87efb36255f5b3ea6d15a7
tree44322193b68eda114dcf0aea0562a5229f0d25a7
parent0f51fc6ab1de7419b1e99737e2b350357a6f75f9
mw.widgets.TitleInputWidget: Don't bypass namespace choice with redirects

If 'namespace' was not null, and 'showRedirectTargets' was true (the default),
pages from namespaces other than the chosen one could appear in the
suggestions when a cross-namespace redirect from chosen to other namespace
was encountered. Prevent this.

Change-Id: Id863d002d598dc2429919e88dd2dde9e9836bb3d
resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js