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

URLRenderer renderFullUrl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.7
    • 6.2.0
    • wicket
    • None

    Description

      When using the following code to create an absolute url in wicket 1.5.7 from a page class and parameters, there are also duplicate segments in the url. the rendered absolute url is not correct.

      final Url url = RequestCycle.get().mapUrlFor( pageClass, pageParameters );
      final String result = RequestCycle.get().getUrlRenderer().renderFullUrl( url );

      RequestCycle.get().mapUrlFor(..) does not return an "absolute" url (first segment will not be empty).

      See also description in WICKET-4561

      Attachments

        1. quickstart.zip
          34 kB
          Dirk Forchel

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            forchel Dirk Forchel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: