Fix org invite url being html encoded #874

Closed
opened 2026-04-06 00:18:38 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @BlackDex on 10/18/2024

Ever since we changed to pass the full url as a template value handlebars now html-encodes this. This causes issues with the plain/text mails, but it also could potentially cause issues with the text/html templates.

This PR encloses the template values inside triple braces {{{ }}} which prevents html-encoding. Since the URL is generated via the url crate the values are percent-encoded anyway.

Fixes #5097

*Originally created by @BlackDex on 10/18/2024* Ever since we changed to pass the full url as a template value handlebars now html-encodes this. This causes issues with the plain/text mails, but it also could potentially cause issues with the text/html templates. This PR encloses the template values inside triple braces `{{{ }}}` which prevents html-encoding. Since the URL is generated via the `url` crate the values are percent-encoded anyway. Fixes #5097
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#874