alphagov/govuk_template — pull request #82 by alexmuller (2014-05-14 21:35:37+00:00)
Title: Don't HTML-escape the assetPath with Mustache

Use Mustache's 3 curly braces to indicate that we don't want the assetPath variable to be HTML escaped.

The assetPath is referenced from inside the href attribute of link tags, and is generally formed of either a path or a URL containing a hostname.

Currently, the template outputs HTML like this:

This commit changes it to something more like this:

(See also alphagov/spotlight#497 for more context. I think we're seeing requests from badly behaved clients that don't interpret HTML escaped values inside `href`s correctly. Most clients seem to work fine.)