Tags:
archive_me1Add my vote for this tag create new tag
view all tags

Bug: BehaviourOfSpaceInForcedLink

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 smile

-- 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

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2003-07-21 - RichardDonkin
 
  • 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.