Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
Rendering in the platform
-
None
-
I noticed this on platform.xwiki.org, but it should be present in any xwiki installation.
-
url parenthesis
-
Description
I was browsing through a few doc pages and noticed that when a wiki page contains an URL that is enclosed parentheses, the automatically converted URL contains the closing parenthesis leading to a 404 error link.
Technically this is correct since a URL may contain unquoted parentheses, but this is very unlikely.
Would it be possible to either convert the link excluding the parentheses if there is a opening and closing parenthesis like this:
... (http://www.example.com/) ...
->
... ([[http://www.example.com/]]) ...
but if there no opening parenthesis, include the closing parenthesis:
... http://www.example.com/param=(xxx) ...
-->
... [[http://www.example.com/param=(xxx)]] ...
or
display a warning before saving the page when the URL ends with a closing parenthesis.
The URL I found this on is http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation , I have changed the link to fix it.