Clickthrough tracking breaks when a URL has a leading space
Steps to replicate:
- Start a new CiviMail mailing.
- Create a link where the URL has a leading whitespace, e.g.:
<a href=" https://civicrm.org">
- Send the mailing with clickthrough tracking enabled.
- Click the link.
I arrive at https://civicrm.org.
I end up on the dashboard of my Civi install (or access denied, depending on whether I'm logged in).
Since leading whitespace in an
HREF attribute is handled gracefully, I think CiviCRM should handle it identically to if clickthrough tracking was disabled.
This is just a matter of adding a