Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-06-28 17:21:37

jajjg
New member
Registered: 2005-06-28
Posts: 2

Absolute and Relative Links

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

#2 2005-06-29 02:44:55

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Absolute and Relative Links

you must set
xinha_config.baseHref

in your case http://mysiste.com/en/ should work.


Niko

Offline

#3 2005-06-29 11:03:04

jajjg
New member
Registered: 2005-06-28
Posts: 2

Re: Absolute and Relative Links

Its still not working for me.....

niko wrote:

you must set
xinha_config.baseHref

in 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

#4 2005-06-30 05:03:04

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Absolute and Relative Links

hmm... then try using http://edit.com as the baseHref


Niko

Offline

#5 2005-07-18 12:46:52

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Absolute and Relative Links

Is it possible to have xinha leave absolute links in the form of "/en" (for reasons of portability) ?

Offline

Board footer

Powered by FluxBB