Log in

View Full Version : the url conversion can't handle urls which ends with a )


huhn
8th October 2017, 00:27
here is an example "https://en.wikipedia.org/wiki/Safe_area_(television)"
this url is created into a link to the wrong page.

very small thing but maybe it can be fixed.

Midzuki
8th October 2017, 06:17
Just testing...

https://en.wikipedia.org/wiki/Safe_area_(television)

huhn, you are correct. Doom9's vBulletin places the closing parenthesis outside of the [url] BB code;
we the users have to fix the error manually.

LoRd_MuldeR
8th October 2017, 12:36
That's because, if you don't enclose your URL in proper BB Code (https://forum.doom9.org/misc.php?do=bbcode) tags, the forum software can only use heuristic methods to guess where your URL ends. If a closing round bracket was be assumed to be part of the URL, the next person would come along and complain that writing an URL into parenthesis doesn't work as expected - because the closing bracket (which is not part of the URL in that case) is added to the URL and thus the URL won't work anymore.

It's obviously impossible to make it "right" for every situation. So, just use proper BB Code tags in situations where the heuristics don't work for you...

StainlessS
8th October 2017, 13:43
just use proper BB Code tags

Or click on the nice lil "Insert Link" icon (globe just to right of the colors drop down icon, above the Quick Reply Message Box).

huhn
8th October 2017, 22:53
That's because, if you don't enclose your URL in proper BB Code (https://forum.doom9.org/misc.php?do=bbcode) tags, the forum software can only use heuristic methods to guess where your URL ends. If a closing round bracket was be assumed to be part of the URL, the next person would come along and complain that writing an URL into parenthesis doesn't work as expected - because the closing bracket (which is not part of the URL in that case) is added to the URL and thus the URL won't work anymore.

It's obviously impossible to make it "right" for every situation. So, just use proper BB Code tags in situations where the heuristics don't work for you...
so the problem comes from the heuristic been smart.
i personally always make sure the next character after a URL is a "space" or an "enter" because to my logic is is the only reliable way to make sure the url is seen as a url and it can be copied if needed. i guess that's just me.

so it comes down to vBulletin.
and fixing this "problem" was never an issue.