Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5468

UrlRenderer#renderRelativeUrl potentially appends "/" after query parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.12.0
    • 6.14.0, 7.0.0-M1
    • wicket
    • None

    Description

      The current implementation of the UrlRenderer appends a slash at the end of the full rendered URL. This causes invalid URLs if there is query parameter value which let the full URL matching the condition in line 294.

      Example of calling "renderRelativeUrl"
      before: ./path/?param=value..
      after: ./path/?param=value../

      I think the condition and conversion of the URL should affect only the path, like this:
      before: ./path/..?param=value..
      after: ./path/../?param=value..

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              mfrankerl Michael Frankerl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: