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:

http://drupal.org/node/161600

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?

CommentFileSizeAuthor
#2 mimemail-1979776-2.patch799 bytessgabe
#1 mimemail-1979776-1.patch402 bytessgabe
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sgabe’s picture

Component: Miscellaneous » Code
Category: support » bug
Priority: Normal » Minor
Status: Active » Needs review
FileSize
402 bytes

This is because in your case the fragment is empty. The attached patch removes the check for the fragment.

sgabe’s picture

FileSize
799 bytes

Rerolled patch with a tiny test for this.

sgabe’s picture

Title: HTML anchor links gets replaced with site URL » Hash mark link gets replaced with site URL
Status: Needs review » Fixed

Committed to both branches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.