Page 1 of 1

Editor rewrites some URLs (not nice)

Posted: Sat May 02, 2009 9:18 am
by dyfa
Good Morning,

finally I managed to add SSL to my blog. I wanted to tell my readers about it, and wrote an article which contained to following link:

Code: Select all

<a href="https://blog.addict.de/>SSL</a>
Someone told me, that the link directed him to http instead of https. I checked it and found, the the editor changed the URL to a single "/" and did not allow me to change it, even in HTML-mode.
I'm using the standard wysiwyg-editor that comes with s9y 1.4.1 and JavaScript is activated.
The same URL works fine in my index.tpl edited with the one and only vi.

I think I have an idea why the editor handles "self referencing URLs" that way, but in this case it's a bug, not a feature. :-)

Nikki 'dyfa' Britz

Re: Editor rewrites some URLs (not nice)

Posted: Mon May 04, 2009 10:01 am
by garvinhicking
Hi!

Which browser are you using? I believe that the WYSIWYG editor Xinha actually relies on the browser'S WYSIWYG buggy behavior of rewriting links. The problem is if absolute links are allowed as per http://xinha.raimundmeyer.de/JSdoc/Xinh ... onfig.html option "stripBaseHref" then the browser will ALWAYS rewrite links to contain the absolute URL. So then, when you write href="/link" it will always rerwite it to href="http://www.blabla.com/link" - which isn't any better than stripping out http:// in front, but this problem would occur a lot more often than the problem with stripping https:// when you use that to login.

Sadly this is a quirk in the inner browser WYSIWYG functionality and something that can't really be fixed by a WYSIWYG editor component that relies on the browser functionality (and its quirks).

Sadly I can't really offer you a solution to this. It should only occur stripping https:// for those links to the actual domain that you use for your s9y admin panel. Links to https://www.google.com/ shouldn't be affected. So I can only advise to that when you really need to place such a link, you would need to disable the WYSIWYG component for entries with this.

Maybe in the future, there can be ways to make use of newer browser controls, when browsers change their behaviour...

Regards,
Garvin

Re: Editor rewrites some URLs (not nice)

Posted: Tue May 12, 2009 1:47 am
by dyfa
Hi Garvin,

I've been a bit too busy the last few days.

Browser: I'm using Firefox 3.0.6 (FreeBSD).

Thanks for the explanation. :-)

dyfa