Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-334

When writing an URL in parentheses, the resulting URL contains the closing )

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • Rendering in the platform
    • Syntax - xwiki/2.2
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alexlehm Alexander Lehmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: