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=6on Joomla and either
https://wplatest.test/civicrm?civiwp=CiviCRM&q=civicrm/mailing/url&u=129&qid=88on WP (depending on Clean URLs being enabled or disabled
- Resultant URL you are taken to is:
- WP (With or without CleanURLs):
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
?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.