This might be a silly question, so forgive me if it is but I am still new to Drupal...
I am using this module in conjunction with Simplenews to create/send HTML newsletters. I have created a template for a Progressive Disclosure email newsletter, using the guide here:
http://www.campaignmonitor.com/guides/mobile/responsive/
And using the code referenced here:
https://gist.github.com/egid/5208136
Take note of line 164 in the code, where you have this:
<a href="#" class="mobilehide">Hide</a> <a href="#" class="mobileshow">Show</a>
The href tags aren't pointing anywhere, and they don't need to be. My problem is that Mime Mail appears to be replacing the '#' symbol with the default URL of my website once the email gets sent. So, when the email is sent line 164 gets changed to this:
<a href="http://www.mysite.com" class="mobilehide">Hide</a> <a href="http://www.mysite.com" class="mobileshow">Show</a>
This appears to be a similar problem (but not quite the same) to this thread I found from several years ago:
But it seems that fix is now included in Mime Mail. My question is, can I have Mime Mail not automatically replace the '#' symbol in those links, and just leave it alone as it was intended?
Comment | File | Size | Author |
---|---|---|---|
#2 | mimemail-1979776-2.patch | 799 bytes | sgabe |
#1 | mimemail-1979776-1.patch | 402 bytes | sgabe |
Comments
Comment #1
sgabe CreditAttribution: sgabe commentedThis is because in your case the fragment is empty. The attached patch removes the check for the fragment.
Comment #2
sgabe CreditAttribution: sgabe commentedRerolled patch with a tiny test for this.
Comment #3
sgabe CreditAttribution: sgabe commentedCommitted to both branches.