Problem with links in article

Please report bugs here!

Moderator: Thorsten

Post Reply
mojo_jojo
Posts: 12
Joined: Tue Feb 27, 2007 5:23 pm
Contact:

Problem with links in article

Post by mojo_jojo »

Hi,

When you add a link to another article in the WYSIWYG editor, it is in the form

index.php?action=artikel&cat=45&id=183&artlang=en .

Then when the link is shown in the article through the user panel, it goes through some modifications in artikel.php (around line 110), in the case above the system relative uri will be added and it will look something like

/phpmyfaq/index.php?action=artikel&cat=45&id=183&artlang=en

If however there are more than one links to the same article in an article, the system relative uri will be added to all of them the same number of times as the count of the links.

For example if you have the link index.php?action=artikel&cat=45&id=183&artlang=en
3 times in your article, the output of the links will be
/phpmyfaq//phpmyfaq//phpmyfaq/index.php?action=artikel&cat=45&id=183&artlang=en

I suggest adding something like
$linkArray = array_unique($oLnk->urlpool['href']);
and then using the resulting array in the foreach around line 111 in artikel.php
Best regards,

Georgi
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you're right. I could reproduce this bug and I fixed in CVS.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply