HomePhabricator

Clean up underscore handling in image titles

Tags
None
Referenced Files
None
Subscribers
None

Description

Clean up underscore handling in image titles

For the file endpoint, always redirect from the URL with spaces to the
one with underscores, but then load the file data using the title with
spaces (which is what the API wants). This also has the consequence that
the template always sees the space version, i. e. displays that and not
the underscore version as the heading.

Also add a test for the redirect behavior (first test for this tool!).

Details

Provenance
LucasWerkmeisterAuthored on Nov 17 2019, 6:48 PM
Parents
R2422:57735fe45061: Fix overflowing text enlarging depicteds’ outlines
Branches
Unknown
Tags
Unknown
ChangeId
None