T153499 introduced Special:EntityPage. When called with an unknown repository prefix, this page currently does a weird redirect. Example:
https://www.wikidata.org/wiki/Special:EntityPage/foo:Q1 redirects to
https://www.wikidata.org/wiki/Foo:Special:EntityPage/Q1.
Patches for review: