Hey Lobo. I was able to reproduce this on 1.9 & 2.0. Here are the exact steps I followed:
1. CiviMail>>new mailing sending to multiple users with emails i can access.
2. Entered this exact text in both text and html boxes:
-------------
please
{contact.first_name}
update your info
http://demo.dharmatech.org/civicrm/profile/edit?reset=1&gid=1&id=
{contact.contact_id}
&
{contact.checksum}
---------------------
(the profile ID is 1)
3. Then i logged out of my site.
In HTML format i get the correct path:
http://demo.dharmatech.org/civicrm/profile/edit?reset=1&gid=1&id=111&cs=228a3e9b6fdf77bcc651aa29221240b2_1216055702_168
But in text format, i get a
http://demo.dharmatech.org/modules/civicrm/extern/url.php?u=42&qid=42
which when redirected, goes to this
http://demo.dharmatech.org/civicrm/profile/edit?reset=1&gid=1&id=114&{contact.checksum}
which gives me an error message.
It seems like in HTML format, CiviMail does not try to rewrite the the link so it "survives" and both tokens are given values. But the text version is rewritten and ultimately fails because the checksum token is not given a value. Jason, my coworker at DharmaTech, thinks the issue has to do with the fact that there are two tokens in the path.
i reproduced this on our demo site http://demo.dharmatech.org/ (which you can login into if you like. It's running 1.9) and on a 2.0 installation. Does this help troubleshoot?
Tony: I just tried this with sandbox and could not reproduce it
In my experiment it uses the same url record for both the html and text version, here are the relevant urls
http://localhost/~lobo/drupal6/civicrm/profile/edit?reset=1&gid=1&
{contact.checksum}<a href="http://localhost/~lobo/drupal6/civicrm/profile/edit?reset=1&gid=1&{contact.checksum}
">Profile Edit</a>
and resolves to:
http://localhost/~lobo/drupal6/sites/all/modules/civicrm/extern/url.php?u=11&qid=1
<a href='http://localhost/~lobo/drupal6/sites/all/modules/civicrm/extern/url.php?u=11&qid=1'>Profile Edit</a>
mysql> select * from civicrm_mailing_trackable_url where id = 11 \G;
id: 11
url: http://localhost/~lobo/drupal6/civicrm/profile/edit?reset=1&gid=1&cs=bad35fc9ee2db1bfcc017ca08ee3756c_1215641024_168
mailing_id: 1
I dont think we changed any code in 2.1 for this. can u rerun your experiment
lobo