Welcome, Guest
Username: Password: Remember me

TOPIC: Links generation and "&" symbol

Links generation and "&" symbol 4 years 6 months ago #2

Hi there,
Just bought the plugin for JCE. Works perfectly but I've seen a little thing I want to understand.
On my configuration with :
- Joomla 3.4.5, french
- JCE 2.5.11 with french plugin
- J!Downloads 3.2.39
The link generated is
<a href="index.php?option=com_jdownloads&amp;task=download.send&amp;id=97&amp;catid=4&amp;Itemid=142">test</a>
As you can see, the "&" is converted to "& amp;", ok that's the same, but not clean code as everyone likes :)
The link works in any web navigator (& = & amp;...), is there a problem with my system ?
Last Edit: 4 years 6 months ago by pippo. Reason: Added blank character within "& amp;" strings since it gets encoded as & in Kunena forum
The administrator has disabled public write access.

Links generation and "&" symbol 4 years 6 months ago #3

  • pippo
  • pippo's Avatar
  • Offline
  • Administrator
  • Posts: 29
  • Thank you received: 8
Hi,
first of all, thank you for being one of the first customers and for trusting us in that way!
Second, I see you have all the latest versions of extensions you mentioned, as well as the latest Joomla version.
"Problem" you describe is actually within JCE editor configuration and how it handles Entity Encoding. You can set it up in Cleanup section of JCE's Configuration. Actually, no need to change anything there. Your code is as clean as it can be, I would not touch anything that JCE developers recommend, having on mind their experience. As you may spot, the moment you generate jDownloads link, it contains & character, but when you insert it and see your article's HTML, you get "& amp;" (blank character I put in order not to encode string within quotes as & sign, as it was in your post, I edited it if you don't mind, so it's clear what you wanted to ask. Kunena does that, too, as you see :) )
Just for experimenting, try reconfigurating JCE to see results, but in my oppinion, & is one of characters that will remain encoded, it's one of 3-4 exceptions they want to keep that way.
Let me know if you got results as you wish.
Cheers!
Last Edit: 4 years 6 months ago by pippo.
The administrator has disabled public write access.

Links generation and "&" symbol 4 years 6 months ago #4

  • pippo
  • pippo's Avatar
  • Offline
  • Administrator
  • Posts: 29
  • Thank you received: 8
@webmasterFFPP
Proposition for you after I visited your website: maybe you'd like to change few settings there.
I hope you have mod_rewrite enabled on your server. Check that under System -> System Information.
If yes, go to Global Configuration and under SEO Settings do this:
1. Search Engine Friendly URLs - YES
2. Use URL Rewriting - YES
Then go to root of your website and rename htaccess.txt to .htaccess (use ftp for this)

This would give you nice SEF urls, meaning that you won't have anymore & or & amp;.
Read more about that at docs.joomla.org/Search_Engine_Friendly_URLs
If you're more advanced Joomla user, sorry if I was a bit too detailed :), but I presumed you're not, since you're not using SEF urls.
Last Edit: 4 years 6 months ago by pippo.
The administrator has disabled public write access.

Links generation and "&" symbol 4 years 6 months ago #5

Okidoki, thanks for your replies.

Well that's not the good website ;)

I'll see my jce config tomorrow , the site I'm working was an old J1.5, totally hacked... I've just upgrade some basic components and joomla without change anything...
The administrator has disabled public write access.
Time to create page: 0.089 seconds