Announcement

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

#1 2005-06-10 14:54:05

nriddock
New member
Registered: 2005-06-10
Posts: 1

Insert anchor problems with database...

i am using Xinha with a database driven set of pages. (company newsletter tool)

The issue im having is:

when a new newsletter (insert_newsletter.php) is created it inserts the anchors just fine, the data is submitted to the database correctly...all is well

when i edit an existing newsletter (update_newsletter.php) and I view the html souce for the anchors...the link / anchor has somehow appended the filename to the anchor link.

ie:

new newsletter:
-----------------------------------------
<a href=#link1>Link 1</a>
...
...
Here is link 1 <a name=link1>


edit an existing newsletter
-----------------------------------------
<a href="update_newsletter.php?recordID=58#link1">Link 1</a>
...
...
Here is link 1 <a name=link1>



any ideas? thx

Offline

#2 2005-08-10 00:16:16

sman
New member
From: Melbourne
Registered: 2005-07-15
Posts: 2

Re: Insert anchor problems with database...

I am having a similar problem.... the links in my case, however, have more than one argument for the url, and xinha seems to be replacing the & with & - which is killing all of the links

for example, this is what is initially inserted:

<a href="#xyz">link to xyz</a>

and this is what replaces the above code:

<a href="index.php?action=page&form=content&page=2378#xyz">link to xyz</a>

any help would be much appreciated

Last edited by sman (2005-08-10 00:19:35)

Offline

#3 2005-08-10 02:56:08

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

Re: Insert anchor problems with database...

the url bevore the #xyz should be stripped out in the function fixRelativeLinks when config.stripSelfNamedAnchors is true.

however it looks there is a bug big_smile

could you please try using update_newsletter.php without any get-arguments?


...& in links is correct! - actually using only & is even invalid (at least if you use XHTML 1.0 Strict - try it in a validator big_smile)


Niko

Offline

#4 2005-08-22 00:41:56

sman
New member
From: Melbourne
Registered: 2005-07-15
Posts: 2

Re: Insert anchor problems with database...

thanks for your help!

is there anywhere i can report this as a bug?

Offline

Board footer

Powered by FluxBB