Tags:
create new tag
view all tags

Bug: Parent List Broken if Dashes Included in Topic Name (of a parent)

If a topic includes a dash, e.g. "How-toDocuments", the parents list doesn't create a link to this topic, because "WebName.How-toDocuments" doesn't get recognized as a topic (it's not quite proper camelback notation).

Not being extremely familiar with TWiki, I'd guess experts may choose to eliminate the possibility of dashes in topic names, just as spaces are automatically eliminated ([[How To]] generates a "HowTo" topic), but I've made a quick fix for myself, in TWiki.pm:

1463c1463
<             $text = "[[$pWeb.$pTopic][$pTopic]]$sep$text";
---
>             $text = "$pWeb.$pTopic$sep$text";

This fixes my problem.

Test case

Environment

TWiki version: 01 Dec 2001
TWiki plugins: None, KoalaSkin, CalendarPlugin
Server OS: OpenBSD 3.0
Web server: Apache 1.3.19
Perl version: 5.6.1
Client OS: Mac OS X, Windows 2KAS
Web Browser: IE 5 on Mac, IE 6 on Windows

-- FredMannby - 19 Jun 2002

Follow up

The quick fix you listed is probably the other way around.

This has been fixed and is a duplicate of NonWikiWordTopicsNotLinkedInParentListing.

-- PeterThoeny - 20 Jun 2002

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-06-20 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.