SM2 Extensions | Joomla! | Custom Development | Brisbane | Australia


Home arrow Support arrow Forum
SM2 Extensions  


Links in HTML Message - 2007/04/08 23:45 I've put together a simple HTML newsletter that uses named anchors (<a href="#topic">) rather than linked content from the site. Somehow, my links get rewritten into links from the Joomla! installation. Any ideas why this is happening and how I can get it to stop?
  | | The administrator has disabled public write access.
Re:Links in HTML Message - 2007/04/09 01:29 G'Day Alyssa

This appears to be a bug
We process all links to add the site correctly to them in case the editor used in Joomla! does not.
However I did not take a link that was a named anchor into account.
If you wish to fix it yourself then modify administrator/components/com_sm2emailmarketing/sm2emailmarketing.class.php
on about line 1499
replace

Code:

 if ((strpos($match[2], 'http')===false) && (substr(strtolower($match[2]), 07) != 'mailto:')) {



with

Code:

 if ((strpos($match[2], 'http')===false) && (substr(strtolower($match[2]), 07) != 'mailto:') && (substr($match[2], 01) != '#')) {



This will be fixed in the next release but at this stage I am not sure when that will be

Hope this helps
Tony
  | | The administrator has disabled public write access.