Announcement

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

#1 2011-03-03 09:47:53

tickerguy
New member
Registered: 2011-03-03
Posts: 3

How do I tell Xinha NOT to strip URLs in the link insert?

Example:

I have Xinha embedded in web page http://my.domain/xxxx.

I create a link within that domain.

If I look at what it sends back to the HTML Area, the prefix (http://my.domain) is STRIPPED, even though I entered it.

So instead of "http://market-ticker.org/akcs-www?post=xxxxx" I have returned to the application "http://?post=xxxxx""

The latter is invalid if the user later displays the top level page (http://market-ticker.org) without the prefix, which may happen.  This results in a broken link.

How do I stop XINHA from stripping the prefix?

Offline

#2 2011-03-03 18:28:47

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: How do I tell Xinha NOT to strip URLs in the link insert?

Config option "stripBaseHref" should be false.


James Sleeman

Offline

#3 2011-03-03 18:46:41

tickerguy
New member
Registered: 2011-03-03
Posts: 3

Re: How do I tell Xinha NOT to strip URLs in the link insert?

Thanks - will give that a shot.

Offline

#4 2011-03-22 14:48:38

tickerguy
New member
Registered: 2011-03-03
Posts: 3

Re: How do I tell Xinha NOT to strip URLs in the link insert?

Didn't do it.  It still strips the URL.

Offline

#5 2011-03-23 19:25:35

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: How do I tell Xinha NOT to strip URLs in the link insert?

You'll probably need to debug the code then to see why in your particular case it is doing this. 

Search XinhaCore.js for stripBaseHref and you'll find where it's used.

Or.  Just use some regexp to fix the links when you get them back to the server might be easier in the long run.


James Sleeman

Offline

Board footer

Powered by FluxBB