Tags:
create new tag
, view all tags

Question

I need to include a link to an extraordinarily long URL on a page of my TWiki, and so I use [Square bracket rules]. But it fails. I omit a description of the problem and of my configuration, since you can see the problem for yourself:

Here is the line

[[http://poiesis.nlx.com.ezproxy.library.arizona.edu/display.cfm?&clientID=107086&advquery=toc.sect.rvm.2.1&infobase=postoc.nfo&softpage=GetClient42&view=browse&toString=function%20()%20{%20%20%20%20result%20=%20%22%22;%20%20%20%20firstItem%20=%20true;%20%20%20%20for%20(prop%20in%20this)%20{%20%20%20%20%20%20%20%20if%20(!firstItem)%20{%20%20%20%20%20%20%20%20%20%20%20%20result%20+=%20%22,%20%22;%20%20%20%20%20%20%20%20}%20else%20{%20%20%20%20%20%20%20%20%20%20%20%20firstItem%20=%20false;%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20result%20+=%20prop%20+%20%22=%22%20+%20this[prop];%20%20%20%20}%20%20%20%20return%20result;}][On what there is]]

and here is what displays

[[http://poiesis.nlx.com.ezproxy.library.arizona.edu/display.cfm?&clientID=107086&advquery=toc.sect.rvm.2.1&infobase=postoc.nfo&softpage=GetClient42&view=browse&toString=function%20()%20{%20%20%20%20result%20=%20%22%22;%20%20%20%20firstItem%20=%20true;%20%20%20%20for%20(prop%20in%20this)%20{%20%20%20%20%20%20%20%20if%20(firstItem)%20{%20%20%20%20%20%20%20%20%20%20%20%20result%20+=%20%22,%20%22;%20%20%20%20%20%20%20%20}%20else%20{%20%20%20%20%20%20%20%20%20%20%20%20firstItem%20=%20false;%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20%20result%20+=%20prop%20+%20%22=%22%20+%20this[prop];%20%20%20%20}%20%20%20%20return%20result;}][On what there is]]

instead of the expected On what there is, functioning as a link. The link is to an external web site, and I have no control over the extraordinarily stupid URL.

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- ShaughanLavine - 06 Aug 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Apparently, TWiki 4 is picky with square brackets in URLs. If you escape [prop] with %5Bprop%5D you are OK:

On what there is

-- PeterThoeny - 06 Aug 2006

Once again, thanks, both for the answer and the amazingly quick turn-around. May I suggest renaming this question SquareBracketsinURLFailsinSquareBracket, or some such, so that others with the same problem can find it?

-- ShaughanLavine - 06 Aug 2006

 
Topic revision: r3 - 2006-08-06 - ShaughanLavine
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.