You are here: Foswiki>Tasks Web>Item5304 (08 Jan 2015, GeorgeClark)Edit Attach

Item5304: Inappropriate order of default linking for web/topic names

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: TWiki:Main.VickiBrown
Waiting For:
Last Change By: GeorgeClark
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

This seems to be fixed on Foswiki 1.2 Setting to No Action.

-- Main.GeorgeClark - 08 Jan 2015

ItemTemplate edit

Summary Inappropriate order of default linking for web/topic names
ReportedBy TWiki:Main.VickiBrown
Codebase
SVN Range TWiki-5.0.0, Wed, 23 Jan 2008, build 16283
AppliesTo Engine
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 08 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy