Summary
Basically, a link can be recognized within another link, in either the double square bracket syntax or within a table of contents entry (heading), and maybe other cases. Read on for more description of the behavior.
I (and
RichardDonkin) don't think it should be this way.
--
RandyKramer - 30 Mar 2002
Details
(Originally from
AnomalyInDoubleSquareBracketSyntax, with no refactoring so far.)
Question
.I'm reporting this behavior -- not sure it needs to be fixed -- it's just something that might be considered in any future redesign of TWiki.
See
RPM, and especially the link "An FAQ re rebuilding the RPM database". The behavior is strange in both IE5 and Konqueror, but slightly different in each case.
The link was created like this:
[[http://hermes.afaa.asso.fr/users/pascal/linux/rpm-rebuilddb][An FAQ re rebuilding the RPM database]]
In IE5, the link is displayed with an underline under all but the word database, in other words, "database" is not included in the link. In addition you may find "RPM" displayed in a different color than the rest of the link (like a visited vs. an unvisited link).
In konqueror, the link is displayed with the word "database" as part of the link, but, like IE5, you may find "RPM" displayed in a different color than the rest of the link.
If you hover your mouse over the RPM in the link, you will find that it is a different link than the rest of the link.
If you view the source of this line, you'll see:
<a href="http://hermes.afaa.asso.fr/users/pascal/linux/rpm-rebuilddb" target="_top">An FAQ re rebuilding the <a href="/cgi-bin/view/Wikilearn/RPM">RPM</a> database</a>
It seems that TWiki is recognizing a link within a link -- not exactly sure why. I don't think the dangling "database" or the different link to the "RPM" is appropriate, but it's not a major problem either.
Clearly, by using as many forced links as I do, I am pushing TWiki beyond its design intent. If I were redesigning TWiki, I'd do something different here.
- TWiki version: Current SourceForge
- Web server: " "
- Server OS: " "
- Web browser: IE5 and Konqueror 2.2.1
- Client OS: Win95 and Mandrake 8.1
--
RandyKramer - 29 Mar 2002
Answer
I've noticed this bug a few times, and it should be fixed. There's a similar issue with recognising
WikiWords within TOC links as well.
Using forced links is important and I use them all the time in our local TWiki, so carry on pushing the envelope!
In fact, why not copy or move this topic into a
BugReport, so it's easier to track?
--
RichardDonkin - 29 Mar 2002
Ok! I'm copying rather than moving it because I do not have rename/move privileges. Will become
LinkWithinALink.
--
RandyKramer - 30 Mar 2002
Now fixed in
TWikiAlphaRelease, see
CVS:lib/TWiki.pm
, rev 1.129. The TOC bug was fixed some time back, although I do find the linking of ABBREVs within the actual headings a bit unsightly...
--
RichardDonkin - 30 Mar 2002