Links that contain brackets gets broken?

Got a question or suggestion about the forum? Ask or comment here, or
PM an admin or moderator.
Post Reply
Message
Author
beGi
Senior Member
Senior Member
Posts: 518
Joined: Tue Jan 29, 2008 8:41 am
Location: Pag; Croatia

Links that contain brackets gets broken?

#1 Post by beGi » Wed Jan 28, 2009 8:29 am

Hi,

I noticed that if I put link that contains bracket on the end it doesn't get opened properly in the window...

Example (my home island, any other examples welcome :) ):

http://en.wikipedia.org/wiki/Pag_(island)

Somehow the last bracket does not appear in new window address bar, and link is broken until you manually add last bracket in the address bar (until you close bracket)...

FF and IE7 do the same so it must be phpBBv3 issue (or on my own unit)...

Can someone confirm this?

Hyperlink works fine though...

GomJabbar
Moderator
Moderator
Posts: 9765
Joined: Tue Jun 07, 2005 6:57 am

Re: Links that contain brackets gets broken?

#2 Post by GomJabbar » Wed Jan 28, 2009 8:48 am

It is a phpBB3 limitation. There is a workaround though. Use URL Encoding for the problem characters. The URL Encoding for ) is %29.

Change: http://en.wikipedia.org/wiki/Pag_(island)

To: http://en.wikipedia.org/wiki/Pag_(island%29

See following URL Encoding Reference for all the codes: http://www.w3schools.com/tags/ref_urlencode.asp
DKB

GomJabbar
Moderator
Moderator
Posts: 9765
Joined: Tue Jun 07, 2005 6:57 am

Re: Links that contain brackets gets broken?

#3 Post by GomJabbar » Wed Jan 28, 2009 8:57 am

Oh, I forgot. You can also enclose the URL in URL tags. This is an easier solution. Highlight the URL with your mouse, then click on the URL button.

Examples (BBCode turned off to show):

[url]http://en.wikipedia.org/wiki/Pag_(island)[/url]

[url=http://en.wikipedia.org/wiki/Pag_(island)]Pag Island[/url]
DKB

GomJabbar
Moderator
Moderator
Posts: 9765
Joined: Tue Jun 07, 2005 6:57 am

Re: Links that contain brackets gets broken?

#4 Post by GomJabbar » Wed Jan 28, 2009 9:01 am

Examples (BBCode turned now turned on):

http://en.wikipedia.org/wiki/Pag_(island)

Pag Island
DKB

beGi
Senior Member
Senior Member
Posts: 518
Joined: Tue Jan 29, 2008 8:41 am
Location: Pag; Croatia

Re: Links that contain brackets gets broken?

#5 Post by beGi » Wed Jan 28, 2009 9:08 am

Yep, my HP does the same...

Thanks for clarification...

basketb
ThinkPadder
ThinkPadder
Posts: 1085
Joined: Mon Apr 09, 2007 1:10 am
Location: California, USA

Re: Links that contain brackets gets broken?

#6 Post by basketb » Wed Jan 28, 2009 1:13 pm

GomJabbar wrote:It is a phpBB3 limitation. There is a workaround though. Use URL Encoding for the problem characters. ...
Is there a list that lists all the problematic characters?

GomJabbar
Moderator
Moderator
Posts: 9765
Joined: Tue Jun 07, 2005 6:57 am

Re: Links that contain brackets gets broken?

#7 Post by GomJabbar » Wed Jan 28, 2009 4:08 pm

In the link I posted above from w3schools.com it explains that any non-ASCII characters need to be encoded as well as spaces. This also means that accented characters need to be encoded. There is a link in that link above to a table of the ASCII character-set.

However the above isn't entirely true, because the ) character breaks the URL in phpBB3, yet it is an ASCII character.
DKB

Post Reply

Return to “Forum Notices, Questions and Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest