Page MenuHomePhabricator

Allow/enforce lowercase, hyphenated page URLs
Open, LowestPublicFeature

Description

Author: mcb

Description:
Currently pages have URLs like:

http://example.org/wiki/Page_title

In some contexts it may be preferred to use formats like:

http://example.org/wiki/page-title
http://wiki.example.com/page-title
http://examplewiki.com/page-title

So, this is an enhancement request for options to allow and require all-lowercase URLs (specifically, for the page portion) and to set the allowed separator(s), for example the hyphen instead of the underscore.

It would be desirable to have such URL customization options in the HTML UI or via LocalSettings.php, not with complex configurations in multiple places.

To make it really easy, there could be an option to set the URL format to "Wikipedia Style", "WordPress Style" or "Custom".

Thank you for your hard work and consideration.

Details

Reference
bz61851

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 2:50 AM
bzimport set Reference to bz61851.
bzimport added a subscriber: Unknown Object (MLST).

If you really want it, uou could do this by setting $wgCapitalLinks=false, $wgRestrictDisplayTitle=false, then using the lowercase-hyphenated variant as actual page names and adding {{DISPLAYTITLE:Capitalcase Standard}} to each page.

(Of course that's not a very pleasant solution, but it looks workable to me.)

https://www.mediawiki.org/wiki/Manual:$wgCapitalLinks
https://www.mediawiki.org/wiki/Manual:$wgRestrictDisplayTitle

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:14 AM
Pppery updated the task description. (Show Details)
Pppery subscribed.

What's the use case for this?

It is a fairly common convention for URLs to be formatted like that, and it also used to be common SEO advice.

For example, Slack (ew) displays link tooltips with URLs in all lowercase when hovering an external link:

image.png (1,025×201 px, 30 KB)

What's the use case for this?

One of subset of this proposal - allow making URL starting with lowercase letter, may be useful in Wikimedia. e.g. the enwiki article of iPad can be at https://en.wikipedia.org/wiki/iPad instead of https://en.wikipedia.org/wiki/IPad. Though I don't support all lowercase and hyphenized URL like https://en.wikipedia.org/wiki/donald-trump in Wikimedia.

This is related to T55566: Pages should have metadata about their correct title (capitalisation, special characters, etc)