Page MenuHomePhabricator

When saving a page normalize the page title first
Closed, ResolvedPublic

Description

Including expanding namespace aliases, capitalize page names according to site config, and resolve redirects.


Version: 1.0.0 (Android)
Severity: enhancement

Details

Reference
bz33627

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:05 AM
bzimport set Reference to bz33627.

philinje wrote:

Not sure how urgent this is, but sounds fundamental.

The tricky part right now is that we save based on the URL, so we don't actually have a normalized title -- just whatever incoming title we started with, which may be a redirect or non-normalized form. We also save history entries right away (before loading) I think so would need to have a way to fetch the title back out of the page and jiggle things around to save after, possibly using a normalized URL.

Shouldn't be too hard, just a little finicky.

We need <link rel="canonical"> in the mobile frontend for this to work. Filed bug #34240

We now do this, since everything's based on the API and we resolve redirects, etc :)