Recommend
1 
 Thumb up
 Hide
12 Posts

BoardGameGeek» Forums » BoardGameGeek Related » BGG Bugs

Subject: URLs that contain colons don't post properly. rss

Your Tags: Add tags
Popular Tags: bgg_bug_url [+] [View All]
Ian Madsen
United States
Kearns
Utah
flag msg tools
Trains!
badge
Houseplant?
Avatar
mbmbmbmbmb
I tried to post the following URL a few minutes ago, but whatever I tried, it wouldn't hyperlink properly. Here is a demonstration:

http://www.vassalengine.org/wiki/Module:Twilight_Imperium_(third_Edition)

[url]http://www.vassalengine.org/wiki/Module:Twilight_Imperium_(third_Edition)[/url]

[url]"http://www.vassalengine.org/wiki/Module:Twilight_Imperium_(third_Edition)"[/url]

[url=http://www.vassalengine.org/wiki/Module:Twilight_Imperium_(third_Edition)]Hyperlink Text[/url]

[url="http://www.vassalengine.org/wiki/Module:Twilight_Imperium_(third_Edition)"]Hyperlink Text[/url]

Shouldn't one of these options work? I've had problems with URLs with spaces not hyper-linking correctly, but that problem is overcome using quotation marks, but with this problem, quotation marks just break the hyperlink further.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Scott Alden
United States
Dallas
Texas
flag msg tools
admin
badge
Aldie's Full of Love!
Avatar
mb
Probably should work - but the colon doesn't seem very happy.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jonathan Harrison
United States
Fisher
Illinois
flag msg tools
So long ...
badge
... and thanks for all the fish.
Avatar
mb
You need to escape the colon as %3A, the left paren as %28, and the right paren as %29:

This:

http://www.vassalengine.org/wiki/Module%3ATwilight_Imperium_%28third_Edition%29

or

this.
9 
 Thumb up
5.00
 tip
 Hide
  • [+] Dice rolls
Jonathan Ham
United States
The Colony
Texas
flag msg tools
badge
HONK HONK
Avatar
mbmbmbmbmb
Try encoding the url with escape characters. For a colon, that would be %3A. Parentheses also sometimes have trouble, encode them as %28 for left and %29 for right. Hit quote on this post if you want to see how I did it.

http://www.vassalengine.org/wiki/Module%3ATwilight_Imperium_...

Hyperlink text
5 
 Thumb up
5.00
 tip
 Hide
  • [+] Dice rolls
Old & Chaotic Evil Bob
United States
Plainville
Massachusetts
flag msg tools
I'm not the Admin you are looking for
badge
O&CE Bob has Retired as a Geek Admin
Avatar
mbmbmbmbmb
I think this works
your have multiple unsafe characters in the URL
quote this reply to see what I did


Twilight_Imperium_(third_Edition)


I have a lesson on this posted on Evil Bob's Test entry 1 (duplicate research)


edit: I got beat on the reply

5 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jonathan Harrison
United States
Fisher
Illinois
flag msg tools
So long ...
badge
... and thanks for all the fish.
Avatar
mb
howdyhamster wrote:
Parentheses also sometimes have trouble ...

Yes. Parenthesis will kill a BGG link every time. Wikipedia articles are terrible for this. shake
2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Ian Madsen
United States
Kearns
Utah
flag msg tools
Trains!
badge
Houseplant?
Avatar
mbmbmbmbmb
Who knew that hyperlinks could be so complicated. Thanks, that will have to do for now.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Scott Alden
United States
Dallas
Texas
flag msg tools
admin
badge
Aldie's Full of Love!
Avatar
mb
If someone has the "magical" regular expression for every URL in the world please feel free to post it (or a link to it).
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Chaddyboy
United States
Olathe
Kansas
flag msg tools
admin
designer
Bloooooop.
badge
Bluuuuuurp.
Avatar
mbmbmbmbmb
I use colon cleanse on all my links.
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jonathan Harrison
United States
Fisher
Illinois
flag msg tools
So long ...
badge
... and thanks for all the fish.
Avatar
mb
See, for example, http://www.december.com/html/spec/esccodes.html.

You can usually just google "URL escape code X", where X is the special character you want to escape.
3 
 Thumb up
0.01
 tip
 Hide
  • [+] Dice rolls
Clem Fandango
New Zealand
WELLINGTON
flag msg tools
Stephen, it's Clem Fandango. Can you hear me?
badge
YES I can hear you Clem Fandango!
Avatar
mbmbmbmbmb
chaddyboy_2000 wrote:
I use colon cleanse on all my links.


I nearly didn't make a stupid comment about colon cleansing being good health practise.
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Maarten D. de Jong
Netherlands
Zaandam
flag msg tools
badge
Avatar
Aldie wrote:
If someone has the "magical" regular expression for every URL in the world :) please feel free to post it (or a link to it).

Any scripting language worth its salt must have a proper URL-parser built-in. If you are still rolling your own, you are doing yourself and this website a disservice. See here for some hairy examples which BGG's parser totally gives up on:

http://usr:pss@example.com:81/mypath/myfile.html?a=b&b[]=2&b[]=3#myfragment

By the way, the URL-ifier should also stay out of code-tags.
2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.