• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Some code parts, such as WebChanges, need absolute URLs nowadays only because __handleSquareBracketedLink does not manage correctly relative links.

The following patch adds relative links management to __handleSquareBracketedLink :

--- lib/TWiki/Render.pm (revision 7717)
+++ lib/TWiki/Render.pm (working copy)
@@ -673,6 +673,9 @@
     if( $theLink =~ /^$TWiki::regex{linkProtocolPattern}\:/ ) {
         return _protocolLink($theLink, $theText);
     }
+    elsif( $theLink =~ /^\// ) {
+       return '<a href="'.$theLink.'" target="_top">'.$theText.'</a>';
+    }
     my $web;
     ($web, $theLink) = _getWeb($theLink);
     $web = $theWeb unless ($web);

-- BenVoui

SVN 7723 CC

ItemTemplate
Summary r7715 breaks stuff relying on square bracketed links
ReportedBy BenVoui
Codebase

SVN Range 7717
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-12-03 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback