HomeSoftware Heritage

HTMLMinifiyMiddleware: Deactivate convert_charrefs of htmlmin.minify

Description

HTMLMinifiyMiddleware: Deactivate convert_charrefs of htmlmin.minify

Since the recent update of swh-web URI scheme, numerous parameters are now
provided as query ones.

Some parameters are named "timestamp" and the HTML minifier will by default
decode encoded characters, like for instance "&times" ...

As a consequence, some URLs embedded in pages were broken and thus navigation
into the archive when a timestamp is provided as query parameter.

Also escape some "&" characters to display required after that change.

Details

Provenance
anlambertAuthored on May 5 2020, 6:56 PM
anlambertPushed on May 5 2020, 7:20 PM
Parents
rDWAPPSaffd506bc632: api/vault: Fix 404 handling and improve error messages
Branches
Unknown
Tags
Unknown
Build Status
Buildable 12284
Build 18631: test-and-buildJenkins console · Jenkins