Mailing URLs using extern are adding query string in Joomla and WP
Starting in CiviCRM 5.27 mailing URLs using extern/url.php in both Joomla and WP are adding a query string to the destination URL. This issue is also in 5.28RC and latest master.
Steps to reproduce:
- Create a mailing
- Ensure Track Click Throughs and Track Opens are selected
- Create a link to an external site such as startpage.com
- Send Mailing
- In Email Link is
http://joomla.test/index.php?option=com_civicrm&task=civicrm/mailing/url&u=11&qid=6
on Joomla and eitherhttps://wplatest.test/civicrm/mailing/url/?u=4&qid=10
orhttps://wplatest.test/civicrm?civiwp=CiviCRM&q=civicrm/mailing/url&u=129&qid=88
on WP (depending on Clean URLs being enabled or disabled - Resultant URL you are taken to is:
- Joomla:
https://startpage.com/?option=com_civicrm
- WP (With or without CleanURLs):
https://startpage.com/?civiwp=CiviCRM
- Joomla:
Drupal 7 is fine, as well as WP if you are bypassing the extern routing and using the WP REST API instead.
Internal links resolve fine as these are not tracked.
I have not found a case where ?option=com_civicrm
or ?civiwp=CiviCRM
has broken a link, but I imagine it could.
I have not tested Drupal 8 or backdrop.
I tested on CiviCRM 5.26.2 and the destination URLs were 'clean' with no query string so I am marking ths as a regression.