English Forum Switzerland

English Forum Switzerland (https://www.englishforum.ch/forum.php)
-   Forum support (https://www.englishforum.ch/forum-support/)
-   -   Escaping square brackets in URLs? (https://www.englishforum.ch/forum-support/53870-escaping-square-brackets-urls.html)

RetiredInNH 21.06.2009 01:01

Escaping square brackets in URLs?
 
I recently posted a link to:

[url=http://www.youthhostel.ch/hosteldetails.html?&L=1&user_hostels_pi1[bez]=BAD&cHash=9e82d7c97a]Youth Hostel Basel[/url]

which, due to the square brackets embedded in the URL (..[bez]..), turned out:

=BAD&cHash=9e82d7c97a]Youth Hostel Basel

Clicking on the link got to the target, but very inelegantly. Is there a vBulletin way of escaping square brackets?

jrspet 21.06.2009 01:21

Re: Escaping square brackets in URLs?
 
I fixed the link in your post ( youth hostel link )

RetiredInNH 21.06.2009 01:34

Re: Escaping square brackets in URLs?
 
Thanks!

I should have thought of it. I know that spaces are encoded %20 in URLs, and should have guessed that other characters have special encodings. :google: led me to URL Encoding -- (or: 'What are those "%20" codes in URLs?').

21.06.2009 03:07

Re: Escaping square brackets in URLs?
 
You can see from jrspet's reply that the trick is to enclose the URL in quotes:

e.g [url="htpp://url-with-[square-brackets]-mumble"]title[/url]


All times are GMT +2. The time now is 16:01.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0