Steps to replicate the issue (include links if applicable):
- Go to https://www.wikidata.org/wiki/Special:PrefixIndex?prefix=P&namespace=120 or https://www.wikidata.org/wiki/Special:PrefixIndex?prefix=L&namespace=146
What happens?:
- Only the Property and Lexeme Ids are visible (even without the braces)
What should have happened instead?:
It should look like on the respective Special:AllPages pages: https://www.wikidata.org/wiki/Special:AllPages?from=&to=&namespace=120 and https://www.wikidata.org/wiki/Special:AllPages?from=&to=&namespace=146
Other information (browser name/version, screenshots, etc.):
- This is caused by this condition: https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/1edd1dcee04fddf79d2ad3d3833a47d59c1ca2b1/repo/includes/Hooks/HtmlPageLinkRendererEndHookHandler.php#L193
- on Special:PrefixIndex $text equal to only the id, without the namespace, and so not equal to target->getFullText(), which includes the namespace.