You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

  Wednesday, 09 June 2021
  1 Replies
  1.9K Visits
Folks,

I'm having a bit of an issue with JCE Editor. I'm sure it is user error, but I need some help. I am adding Google Analytics code to a hyperlink in the "Code" area of JCE Editor for a K2 item. Below is an example:

menu-alias?utm_source=Source&utm_medium=Home&utm_content=AgeCOVID19-Part2&utm_campaign=CampaignName

When switching between "Editor" and "Code" tabs, the & becomes & like below:

menu-alias?utm_source=Source&utm_medium=Home&utm_content=AgeCOVID19-Part2&utm_campaign=CampaignName

I've turned off validate and cleanup of html but still makes the replacement. How can I stop JCE Editor from doing this substitution?

Thanks,
Joe
more than a month ago
·
#108059
I assume you are referring to the conversion of & to & amp; (the forum has not displayed your post as intended) in the href value of the link?

Ampersands should be encoded in url values - https://stackoverflow.com/questions/3705591/do-i-encode-ampersands-in-a-href

If you absolutely must have them unencoded, perhaps because a badly coded Joomla plugin no longer works with the encoded url, then you can set a Custom Configuration Variables value in the Editor Global Configuration, as in the image below:

https://cdn.joomlacontenteditor.net/tmp/108058-cleanup-guidance-for-ampersands.jpg

Just because you're not paranoid doesn't mean everybody isn't out to get you.

  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!