Upgraded to 01 Feb 2003 release from 01 Dec 2001, and this looked like a bug in generating forced links containing spaces until I found the note in
TextFormatingRules -
Note: For external link references, you can simply use a space instead of ][ to separate the link URL from the descriptive text. - But this is a change of working behaviour from the previous release that will look like a breakage to an upgrader, so I thought I'd open this anyway.
Now I don't know how common URLs with spaces in them are, but they certainly exist on our intranet, so I'm wondering that it may be worthwhile to revert to the old behaviour?
Thanks
Jason
Test case
This is the link for example:
[[http://xyz/pqr/apples and oranges]]
The TWiki20011201 result (this worked):
<a href="http://xyz/pqr/apples and oranges" target="_top">http://xyz/pqr/apples and oranges</a>
when you click it on IE it replaces each space with a
%20
The TWiki20030201 result (not what I wanted!):
<a href="http://xyz/pqr/apples" target="_top">and oranges</a>
Environment
TWiki version: |
20030201 |
TWiki plugins: |
|
Server OS: |
Cygwin/Solaris |
Web server: |
Apache |
Perl version: |
5.8 |
Client OS: |
W2000 |
Web Browser: |
IE |
--
JasonShortt - 13 May 2003
Follow up
In
NoBumpyCase there is a discussion that user-frindly text should be first (on left) and URL after it. JSPwiki uses a pipe to separate link text from URL
[[text | URL]]
--
PeterMasiar - 13 May 2003
TWiki should not be in the business of making it easy for people to create links that break the HTTP spec. If you really wish to link to pages that haven't illegal links (spaces are not allowed in any version of the HTTP spec, no matter how much a minority webserver allows it) then you should be writing your links as:
http://xyz/pqr/apples%20and%20oranges
This will do precisely what you want, and is standards compliant, and if it's an internal link will mean that you can switch content from one webserver to another at some point later down the line avoiding vendor lockins.
I've marked this as
BugRejected since TWiki's behaviour in this situation is well documented, and standard's compliant. I'm not
CoreTeam though, so if you strongly feel I'm wrong, please change it back
--
MichaelSparks - 20 Jul 2003
I agree with Michael -
EasierExternalLinking uses the fact that space is not a valid URL character to avoid having to type two square brackets.
--
RichardDonkin - 21 Jul 2003
Fix record