Follow up to :T301003
It came to my attention that many wikis are apparently creating a "p-Navigation" section rather than a "p-navigation" section. This means when searching for URLs here, or adding portlet items we need to check two places.
Since this is just an issue with the case we're using it makes sense to lowercase the names of sections when reading MediaWiki:Sidebar
I think the associated function is Skin::addToSidebarPlain and these particular lines of code:
$heading = trim( $line, '* ' ); if ( !array_key_exists( $heading, $bar ) ) { $bar[$heading] = []; }
https://global-search.toolforge.org/?q=%5C*+Navigation®ex=1&namespaces=&title=Sidebar
Note this won't help the situation where a wiki removes the menu altogether, so I think we should also make sure this menu always exists.
TODO
- Make sure the navigation key is always present in the sidebar
- Lowercase the heading when executing Skin::addToSidebarPlain