got5/tapestry5-jquery — Issue #150: Redirect URL not well handled in JSON response
Author: Nephtys
Created: 2012-03-05 09:18:43+00:00
State: open

In the function loadScriptsInReply in tapestry-jquery.js, the redirectURL is handled in two ways :

- if the server runs https, we do window.location = redirectURL;
- if not, we do window.location.pathname = redirectURL;

But in the java class AjaxLinkComponentEventResultProcessor of Tapestry, what is put in the redirect URL is "value.toRedirectURI()" so it is an complete URL and not a path.

Thus we have a javascript error in other browsers than Firefox "invalid URL" in the case where URL has parameters.