Body: <p>I am using WordPress 5.4 and CiviCRM Version 5.18.4. I am trying to include an &quot;unsubscribe&quot; link to put at the bottom of NON-bulk emails (including those sent by CiviRules).</p>
  <p>I have created a Profile containing the email address and the &quot;do not email&quot; field.  It appears in my list of profiles as ID=31.</p>
  <p>I create an email template, and at the bottom of the email I put a link to:
  <a href="http://mydomain.org/?page=CiviCRM&amp;q=civicrm/profile/edit&amp;reset=1&amp;gid=31&amp;%7Bcontact.checksum%7D&amp;id=%7Bcontact.contact_id%7D" rel="nofollow noreferrer">http://mydomain.org/?page=CiviCRM&amp;q=civicrm/profile/edit&amp;reset=1&amp;gid=31&amp;{contact.checksum}&amp;id={contact.contact_id}</a></p>
  <p>Correct?</p>
  <p>I send a test email using that template, to a contact with Contact id=61.  The link in the email looks like:
  <a href="https://mydomain.com/civicrm/profile/edit?reset=1&amp;gid=31&amp;id=61&amp;cs=12345678987654321" rel="nofollow noreferrer">https://mydomain.com/civicrm/profile/edit?reset=1&amp;gid=31&amp;id=61&amp;cs=12345678987654321</a></p>
  <p>Looks great, yes?</p>
  <p>I click on that link and get directed to
  <a href="https://mydoimain.com/edit-your-info/?reset=1&amp;gid=31&amp;id=61&amp;cs=12345678987654321" rel="nofollow noreferrer">https://mydoimain.com/edit-your-info/?reset=1&amp;gid=31&amp;id=61&amp;cs=12345678987654321</a>
  where &quot;edit-your-info&quot; is (roughly) the name of a DIFFERENT profile, one with profile ID=16.</p>
  <p>In fact, browsing to <a href="https://mydomain.com/civicrm/profile/edit?reset=1&amp;gid=31" rel="nofollow noreferrer">https://mydomain.com/civicrm/profile/edit?reset=1&amp;gid=31</a> seems to ALWAYS take me to the &quot;edit-your-info&quot; page, no matter what number I set gid equal to, or even if I leave the &quot;gid=N&quot; out entirely.</p>
  <p>Obviously I am making some silly mistake.  Any ideas what?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-08-13T23:57:00.493Z
Comments.Text: do you have any redirects?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-08-15T01:27:43.037Z
Comments.Text: Good question.  Nope, none in place.
Comments.UserDisplayName: David Hyman
Tags: <profile><checksum><unsubscribe><opt-out>
Title: checksum link calls up wrong form
ThreadText: # checksum link calls up wrong form
  
  (Asked by: username_0 on 2020-08-13)
  
  I am using WordPress 5.4 and CiviCRM Version 5.18.4. I am trying to include an "unsubscribe" link to put at the bottom of NON-bulk emails (including those sent by CiviRules).
  
  I have created a Profile containing the email address and the "do not email" field. It appears in my list of profiles as ID=31.
  
  I create an email template, and at the bottom of the email I put a link to:
  [http://mydomain.org/?page=CiviCRM&q=civicrm/profile/edit&reset=1&gid=31&{contact.checksum}&id={contact.contact\_id}](http://mydomain.org/?page=CiviCRM&q=civicrm/profile/edit&reset=1&gid=31&%7Bcontact.checksum%7D&id=%7Bcontact.contact_id%7D)
  
  Correct?
  
  I send a test email using that template, to a contact with Contact id=61. The link in the email looks like:
  <https://mydomain.com/civicrm/profile/edit?reset=1&gid=31&id=61&cs=12345678987654321>
  
  Looks great, yes?
  
  I click on that link and get directed to
  <https://mydoimain.com/edit-your-info/?reset=1&gid=31&id=61&cs=12345678987654321>
  where "edit-your-info" is (roughly) the name of a DIFFERENT profile, one with profile ID=16.
  
  In fact, browsing to <https://mydomain.com/civicrm/profile/edit?reset=1&gid=31> seems to ALWAYS take me to the "edit-your-info" page, no matter what number I set gid equal to, or even if I leave the "gid=N" out entirely.
  
  Obviously I am making some silly mistake. Any ideas what?
  
  **Tags:** profile, checksum, unsubscribe, opt-out
  
  > **Comments:**
  > **username_1**: do you have any redirects?  
  > **username_0**: Good question.  Nope, none in place.  
  
  ---
  
  ## 0 answers
  
  