[
https://issues.apache.org/jira/browse/WICKET-2738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833560#action_12833560
]
Vjacheslav Kanivetc commented on WICKET-2738:
---------------------------------------------
Ok, I will try to cut out as much as possible from the project to get the exact
problem in a single quick-start like project.
It should prepend "../.." or "/" as the location when we press the link is
already "/mail/folder/inbox", so the valid URLs should be either started from
context path, or navigated to it via "../".
I was testing your quickstart in Tomcat (not Jetty), and have no idea how to
specify the context path to Wicket, almost sure that it should be detected :)
The problem is that when I start application (absolutely nothing changed) with
wicket 1.4.5 jar files everything works correctly and links works, with 1.4.6
does not. I suspect that some URL generation code have been changed and
contains a bug inside, but this is probably quite complex scenario. Maybe it is
possible to contact you via e-mail etc to send war of the project and some part
of the sources so you would be able to see the difference yourself?
> setResponsePage doesn't work with MixedParamUrlCodingStrategy
> -------------------------------------------------------------
>
> Key: WICKET-2738
> URL: https://issues.apache.org/jira/browse/WICKET-2738
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.6
> Environment: Wicket 1.4.6 only
> Reporter: Denis Souza
> Fix For: 1.4.7
>
> Attachments: myproject.zip
>
>
> 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.