Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4154

Document#getURL does not encode query string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 2.0 M2
    • URLs
    • Unknown
    • N/A
    • N/A

    Description

      To reproduce you can paste the following snippet in a xwiki/1.0 page, save, then go to Space/YourPage?redir

      #if($request.redir)
      $response.sendRedirect($doc.getURL("view", "test=été"))
      #end
      $request.test
      

      There's no easy solution to this problem since:

      • modifying the behavior of getURL could potentially break a lot of existing code
      • there's no way to get the encoding of a request query string

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              jvdrean Jean-Vincent Drean
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: