Answers.Body: <p>My wordpress base page was set to 'civicrm', changing it to 'civicrm/' seems to have fixed this</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-14T22:42:44.410Z
Answers.LastActivityDate: 2021-12-14T22:42:44.410Z
Answers.UserDisplayName: Robin Fenwick
Body: <p>CiviCRM 5.43.0 in Wordpress 5.8.2</p>
  <p>When building a traditional mailing which includes hyperlinks, and enabling click tracking, we see the following behaviour:</p>
  <p>When clicking the HTML Preview button in CiviCRM, the link works (no tracking enabled)</p>
  <p>When sending the email to the intended recipients, the link works. This is an example of a link from a sent campaign:
  <a href="https://heritagepulse.insights-alliance.com/civicrm/?civiwp=CiviCRM&amp;q=civicrm/mailing/url&amp;u=91&amp;qid=330" rel="nofollow noreferrer">https://heritagepulse.insights-alliance.com/civicrm/?civiwp=CiviCRM&amp;q=civicrm/mailing/url&amp;u=91&amp;qid=330</a></p>
  <p>When using the &quot;send test email to&quot; function, on clicking a link, we see a 404 error. This is an example of how the link is constructed in 'send test email to' mode: <a href="https://heritagepulse.insights-alliance.com/civicrm/mailing/url/?u=92&amp;qid=331" rel="nofollow noreferrer">https://heritagepulse.insights-alliance.com/civicrm/mailing/url/?u=92&amp;qid=331</a></p>
  <p>Is this intentional behaviour?  Thanks!</p>
  
Tags: <civimail>
Title: Email link tracking generating a 404 on preview
ThreadText: # Email link tracking generating a 404 on preview
  
  (Asked by: username_0 on 2021-12-14)
  
  CiviCRM 5.43.0 in Wordpress 5.8.2
  
  When building a traditional mailing which includes hyperlinks, and enabling click tracking, we see the following behaviour:
  
  When clicking the HTML Preview button in CiviCRM, the link works (no tracking enabled)
  
  When sending the email to the intended recipients, the link works. This is an example of a link from a sent campaign:
  <https://heritagepulse.insights-alliance.com/civicrm/?civiwp=CiviCRM&q=civicrm/mailing/url&u=91&qid=330>
  
  When using the "send test email to" function, on clicking a link, we see a 404 error. This is an example of how the link is constructed in 'send test email to' mode: <https://heritagepulse.insights-alliance.com/civicrm/mailing/url/?u=92&qid=331>
  
  Is this intentional behaviour? Thanks!
  
  **Tags:** civimail
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-12-14. Score: 3
  
  My wordpress base page was set to 'civicrm', changing it to 'civicrm/' seems to have fixed this
  
  
  ---
  
  