I m having issues with URL's in fckeditor.
If I enter a URL say:
index.php?ph=1&sub_pg=1
It makes it
index.php?ph=1&sub_pg=1
This makes the URL invalid and crash.
Please let me know how to turn this off.
It is very basic issue and should have an easy fix, since URL's are supposed to have & in them[*]
If I enter a URL say:
index.php?ph=1&sub_pg=1
It makes it
index.php?ph=1&sub_pg=1
This makes the URL invalid and crash.
Please let me know how to turn this off.
It is very basic issue and should have an easy fix, since URL's are supposed to have & in them[*]

Re: URL in Links converts & to & making the URL inva
<a href="/?a=b&c=d">link</a>
If you see a URL like this in the HTML source:
<a href="/?a=b&amp;c=d">link</a>
then your server-side code double-encodes HTML, which would be a bug on your part.
Re: URL in Links converts & to &amp; making the URL inva
&&
&&
posting.php?mode=reply&f=6&t=12464
Re: URL in Links converts & to &amp; making the URL inva
Yes, you are a noob and A.M gave you the correct answer.
If you look at the source of this page you will see that every & in any link is written as &
I wonder if someone will be willing to help you in the future and being called a noob due to your ignorance.
Re: URL in Links converts & to &amp; making the URL inva
True words Alfonso!
Re: URL in Links converts & to &amp; making the URL inva
Re: URL in Links converts & to &amp; making the URL inva
posting.php?mode=reply&f=6&t=12464
posting.php?mode=reply&f=6&t=12464
Re: URL in Links converts & to &amp; making the URL inva
viewtopic.php?f=6&t=12464
viewtopic.php?f=6&t=12464
Re: URL in Links converts & to &amp; making the URL inva
Even if replacing & with & is valid HTML, I'd still prefer that FCKEditor submit the data as it was entered.
Re: URL in Links converts & to &amp; making the URL inva
followedproceededNote: in Drupal, despite the naming convention, "input" filters very properly process on "output" (http://drupal.org/node/263002).
http://drupal.org/node/257026
Re: URL in Links converts & to &amp; making the URL inva
Re: URL in Links converts & to &amp; making the URL inva
viewtopic.php?f=6&t=12464
viewtopic.php?f=6&t=12464
Re: URL in Links converts & to &amp; making the URL inva
Re: URL in Links converts & to &amp; making the URL inva
When you paste the URL directly in the editor it does NOT double-encode it. When you use the Link dialog to mark text with a URL it DOES double-encode it. That is the issue we're trying to convey to you.
You keep saying it is "our code" that is the issue, but if that was the case then it would also be double-encoding the URLs pasted directly into the editor, but it does not. JUST the URLs created with the Link dialog.
Re: URL in Links converts & to &amp; making the URL inva
http://lotusfleet.org/cktest.php
Re: URL in Links converts & to &amp; making the URL inva
One finds a line about forcing simple ampersand so that it can be activated or not, according to the choice of the webmaster:
(or "true")
Would adding this line of code to the config.js file do the trick ? With the settings you wish, of course.
But maybe this has nothing to do with what you are speaking about. I am really no coder and encounter difficulties in understanding technical English. So please be nice and polite if it's completely irrelevant. But tell me.
Re: URL in Links converts & to &amp; making the URL inva
But, if you use CKEditor for building EMAIL MESSAGES, then you do NOT want ampersands to be encoded by the editor. In a common email client like Outlook, if a link contains &, it breaks. This has nothing to do with double-encoding or n00bs.
My solution was to use:
on the page containing my email editor.
Alternately you could put:
in your main editor config.js file if you want this setting to apply to all of your editor instances.