Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-02 14:06:50

pfctdayelise
Member
From: Melbourne, Australia
Registered: 2007-05-18
Posts: 68
Website

[textile] Error rendering links with parentheses in the URL

code: "this is a link":http://wikimediafoundation.org/wiki/Update_of_Foundation_organization_(March_07) blah blah

this is a link blah blah

now, is it a bug or a feature? :) the closing parenthesis is a legitimate part of the URL.

is there some escaping trick I can do to use the URL?

thanks,
Brianna

Last edited by pfctdayelise (2007-09-02 14:08:12)

Offline

#2 2007-09-02 15:49:19

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [textile] Error rendering links with parentheses in the URL

It’s a feature.
You can use a normal <a href="..." />this is a link</a> in this situation

Offline

#3 2007-09-03 06:19:50

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: [textile] Error rendering links with parentheses in the URL

This is a rather Wikipedia-specific way of making up web adresses.

Although the standard for characters which are allowed in URLs (RFC 1738) allows unencoded partheses in URLs, Wikipedia themselves encodes the URL once you click the “article” menu on their site (%28 und %29 being the encoded parantheses characters) and gives you this address:

http://wikimediafoundation.org/wiki/Update_of_Foundation_organization_%28March_07%29

So you could either hand-code the <a..> tag as Ruud suggested or URL-encode such “dangerous” characters to use Textile-style links. There’s a bunch of online URL encoders if your personal encoding capabilites happen to be a bit rusty.

Offline

#4 2007-09-05 14:22:14

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [textile] Error rendering links with parentheses in the URL

this is a link

Hit the quote link for this post to see how I did it, I can’t get Textile to show (and not parse) it properly.

Offline

Board footer

Powered by FluxBB