alphagov / pay-toolbox

Internal administrative tools service for GOV.UK Pay products.
MIT License
11 stars 6 forks source link

PP-12549 Fix bug where & in some links encoded as & #1811

Closed alexbishop1 closed 3 months ago

alexbishop1 commented 3 months ago

If the value of a Nunjucks variable is assigned with a set expression and that variable is later displayed in the template, autoescaping will convert any & characters to & — so the variable value should just use & characters.

This regression was introduced by commit e96dc1c16b79e0baa3215cfd121d8994b15f2da6.