Originally discussed in this comment on gerrit, there may be something wrong with selecting a scope by prefix.
From @ArthurTaylor's initial comment:
The current implementation doesn't quite work for my config. I have:
$wgNamespaceAliases = [ 'Item' => NS_MAIN, // NS_MAIN=0 ... ];and mw.config.get('wgNamespaceIds') includes:
{ "": 0, ... }
since the main namespace is unprefixed. The result is that typing : in the search box sets the drop-down to Item - I guess we don't want that. Also, because ns0 is then mapped to "", the Item namespace alias gets overwritten and it's not possible to switch to the Item namespace by typing Item:.
The issue where just typing a : switches to Item has been fixed. The task here is to investigate anything strange that happens with the main namespace.
It is possible this behavior is the result of (mis-)configuration of a local wiki.
(proposed) Acceptance Criteria
- we know whether this is an issue that affects production
- if it's related to configuration, there's some documentation that helps people avoid this in other wikibases
- if it's a more general problem, we identify the cause and fix it