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
--
ShaughanLavine - 06 Aug 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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