URLs containing ampersand are broken

Description

Inserting URLs with ampersand(s) in the query part are broken in the newsletter mail and preview. E.g. when inserting

1 http://example.com/?foo=1&bar=2&xyz=3

Contao will replace all ampersands '&' with '[&]' on save. But Avisota seems to not resolve this. The generated Newsletter gets a broken URL:

1 http://example.com/?foo=1[

Additional note: even trying to fix that with a variant of Avisota GA reveals, that the URL is shortened already in the received event content.

Our current workaround is to force the editors to manually modify all URL ampersands with %26 (which is wrong, but gives all query params) and changing that to the correct '&' in our variant of GA. But this is tedious and error prone.

See: https://community.contao.org/de/showthread.php?53963-Links-auf-URLs-mit-Ampersand-werden-abgeschnitten

Environment

None

Status

Assignee

Unassigned

Reporter

Georg Rehfeld

Labels

Affected Contao CMS versions

Affects versions

2.x

Priority

Blocker
Configure