Page MenuHomePhabricator

[[mail:]] should redirect to the main page https://lists.wikimedia.org/postorius/lists/
Open, LowPublic

Description

https://meta.wikimedia.org/wiki/Interwiki_map says:
Mail https://lists.wikimedia.org/postorius/lists/$1.lists.wikimedia.org/
For example, [[mail:analytics]] goes to https://lists.wikimedia.org/postorius/lists/analytics.lists.wikimedia.org/
That works fine but it means [[mail:]] alone or mail: in a searchbox goes to https://lists.wikimedia.org/postorius/lists/.lists.wikimedia.org/
This gives a 404 not found. I suggest redirecting that page to https://lists.wikimedia.org/postorius/lists/
The 404 page does have a "Lists" link at top which goes where I want but nearly all interwiki links with nothing after the colon work better by taking you to the main page, usually via a redirect. For example, [[wiktionary:]] goes to https://en.wiktionary.org/wiki/ which redirects to https://en.wiktionary.org/wiki/Wiktionary:Main_Page
The poor cases are mostly/only when $1 is not at the end.

https://lists.wikimedia.org already redirects to https://lists.wikimedia.org/postorius/lists/. I just request the same result for [[mail:]]. A double redirect via https://lists.wikimedia.org would also be OK.

Event Timeline

PrimeHunter: is the suggestion that we add, as a workaround, a 301 permanent redirect https://lists.wikimedia.org/postorius/lists/.lists.wikimedia.org/ -> https://lists.wikimedia.org/postorius/lists/ e.g. via Apache config?

jcrespo lowered the priority of this task from Medium to Low.Jan 22 2025, 11:27 AM

PrimeHunter: is the suggestion that we add, as a workaround, a 301 permanent redirect https://lists.wikimedia.org/postorius/lists/.lists.wikimedia.org/ -> https://lists.wikimedia.org/postorius/lists/ e.g. via Apache config?

Exactly.

A more advanced solution would be adding a way for the interwiki map to specify where a link with an empty $1 should go.
The large majority of links already go to the best page (sometimes via a redirect), but the first entry in https://meta.wikimedia.org/wiki/Interwiki_map says:
acronym https://www.acronymfinder.com/$1.html

This means [[acronym:]] goes to https://www.acronymfinder.com/.html
It would be better to go to https://www.acronymfinder.com