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

setResponsePage doesn't work with MixedParamUrlCodingStrategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.6
    • 1.4.7
    • wicket
    • None
    • Wicket 1.4.6 only

    Description

      When I call setResponsePage() on a page that uses MixedParamUrlCodingStrategy the URL for the destination page is mixed with the URL from the current page.

      In my case, take the URL for a product such as:

      /app/product/1402

      when the user clicks the "Buy" button it adds the product to the shopping cart and calls:

      setResponsePage(ShoppingCartPage.class)

      resulting in a redirect to:

      /app/product/checkout/shoppingcart

      when it should be:
      /app/checkout/shoppingcart

      Works fine in wicket 1.4.5

      Attachments

        1. myproject.zip
          11 kB
          Juegen Donnerstag

        Activity

          People

            Unassigned Unassigned
            dsouza42 Denis Souza
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: