You are not logged in.
Pages: 1
Hi I am having trouble with Absolute and Relative links.
The editor is setup in a different domain (eg. http://editor.com) from the actual site (http://mysite.com).
The problem occurs because the current pages are being pulled from an MySQL database which have all been entered using relative URL's (/en) instead of (http://mysite.com/en).
The problem is everytime I open a page in (http://editor.com) it replaces the relative URL (/en) with (http://editor.com/en) which does not exist.
A larger problem exists cause some of the pages entered are using absolute as well pointing to another domain!.
I just want for it to stop chaning the URL's altogether and leave them the way they are or at the least leave the relative URL's alone and stop converting them to absolute.
I have tried using the
xinha_config.stripBaseHref = true;
which did not seem to work.
Help Much Appreciated.
Thanks
G
Offline
you must set
xinha_config.baseHref
in your case http://mysiste.com/en/ should work.
Niko
Offline
Its still not working for me.....
you must set
xinha_config.baseHrefin your case http://mysiste.com/en/ should work.
I used the example off the site for configuration.
So in step 3 I have the following.
xinha_config = xinha_config ? xinha_config() : new HTMLArea.Config();
xinha_config.pageStyle = 'body { font-family: Verdana, Arial, Helvetica, sans-serif; font-style: normal; font-weight: normal; font-variant:... xinha_config.baseHref = 'http://www.mysite.com';
However when I go to the editor and I enter a realative link like /asdf it still changes it to the domain of the editor and not the one I entered in the config??
Offline
Offline
Pages: 1