Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The problem:
Have an inline internal link in the message body with some query arguments separated by ampersand. It's important that this link is considered internal, otherwise the bug is not reproducible.
In the final email body, all the ampersands get encoded to special entity and the link just doesn't work when clicked from an email. Like this
/my-page?accept_terms=0&authorisation=0&bank_transfer=0
Comment | File | Size | Author |
---|---|---|---|
#3 | mime_mail_internal_urls_encoding-2792471-2.patch | 523 bytes | meramo |
Comments
Comment #2
meramo CreditAttribution: meramo at Bright Solutions GmbH commentedComment #3
meramo CreditAttribution: meramo at Bright Solutions GmbH commentedThe proposed patch fixes the issue and fills the $options['query'] array with correct values from arguments.
Comment #4
DamienMcKennaThat's an interesting issue! Thanks for the patch.
PS, don't forget to set the issue to "needs review" when you upload a patch!
Comment #6
sgabe CreditAttribution: sgabe commentedCommitted, thanks!