Page 1 of 1
Links that contain brackets gets broken?
Posted: Wed Jan 28, 2009 8:29 am
by beGi
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...
Re: Links that contain brackets gets broken?
Posted: Wed Jan 28, 2009 8:48 am
by GomJabbar
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
Re: Links that contain brackets gets broken?
Posted: Wed Jan 28, 2009 8:57 am
by GomJabbar
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]
Re: Links that contain brackets gets broken?
Posted: Wed Jan 28, 2009 9:01 am
by GomJabbar
Re: Links that contain brackets gets broken?
Posted: Wed Jan 28, 2009 9:08 am
by beGi
Yep, my HP does the same...
Thanks for clarification...
Re: Links that contain brackets gets broken?
Posted: Wed Jan 28, 2009 1:13 pm
by basketb
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?
Re: Links that contain brackets gets broken?
Posted: Wed Jan 28, 2009 4:08 pm
by GomJabbar
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.