TWiki makes a convenient optimizing assumption: when only web name is given, it assumes topic WebHome. This is a fine assumption, but it should not be the default
before looking for a page in the current web!
A coworker found this in a local WebTopicList page.
The page is created using
%TOPICLIST{" * [[$name]]"}%
Two of the topics in this web happen to share a name with two of the
webs on this site. Both the webs and the topics have WikiWords as their names. For example, the web in this example is named TrailBlazers. It contains two topics: TrailBlazers and UnicodeEverywhere. Coincidentally, there is also a UnicodeEverywhere
web on the site.
When WebTopicList produces its list, the list contains:
...
* [[TrailBlazers]]
...
* [[UnicodeEverywhere]]
...
Here's the bug:
When clicked, those links default to TrailBlazers.WebHome and UnicodeEverywhere.WebHome. They
should try first in the
current web, linking to TrailBlazers.TrailBlazers and TrailBlazers.UnicodeEverywhere.
I have worked around the problem by editing the WebTopicList to use
%TOPICLIST{" * [[%WEB%.$name]]"}%
however, this should not have been neccesary.
--
TWiki:Main/VickiBrown
- 30 Jan 2008