Page MenuHomePhabricator

Replace local namespaces with real links on Special:CentralAuth
Open, Needs TriagePublic


In T200938, the details of blocks were expanded to include the same details that are on Special:BlockList. However, pages and namespaces that are not a part of core, cannot be safely rendered since that namespace may not exist on the current wiki and even if it does, may not be the same one.

Unfortunately, namespaces are not in the database, so it's impossible to know what the canonical name is for a namespace by the id when the page is rendered.

The siteinfo API does return a map of namespaces for a wiki.

When a "local" link is rendered, we should pass the details of the pages (page id or namespace id) to the client (by putting this data in the HTML somewhere). Then, we should attach a small JavaScript that, when this information is on the page, will use the local wiki's API to expand this link into the real links.