Hello everybody,

Let's me try to describe my issue.
I've some ActionLink on the component and when I click it my Tapestry
application generate some link and return it 
part of code is here

public Object onActionFromAddToBundleCart() throws ShoppingCartException {
...
        Link addProductsToCartLink =
pageRenderLinkSource.createPageRenderLinkWithContext(BundleAddToCart.class,
addToCartContext.toArray());
        addProductsToCartLink.addParameter("return_url", returnUrl);
        return addProductsToCartLink;
}

Page BundleAddToCart works properly. When I use Firefox (any version) I have
link like this

http://myserver/BundleAddToCart/contextItem1/contextItem2/contextItem3/contextItem4?return_url=http://externalserver/somecontext/

And everything works. But when I try to use Google Chrome browser or IE9 I
have some strange behaviour.
I see that tapestry parse all string with pattern "/" and I have incorrect
url parameter message like this "contextItem4?return_url=http:" is
incorrect... 
Ok, I'm trying to encode return_url parameter before calling 
addParameter("return_url", returnUrl)

and as a result I have correct link seemingly...

http://myserver/BundleAddToCart/contextItem1/contextItem2/contextItem3/contextItem4?return_url=http%3A%2F%2Fexternalserver%2Fsomecontext%2F

But when this link doesn't return to Tapestry. In the response header I see
the following 
Connection:close
Content-Length:0
Date:Thu, 09 Jun 2011 17:49:15 GMT
Server:Apache-Coyote/1.1

and in the address bar I see the link like this

http://myserver/BundleAddToCart/contextItem1/contextItem2/contextItem3/contextItem4%3Freturn_url=http%3A%2F%2Fexternalserver%2Fsomecontext%2F

('?' encoded to '%3F' ).

In the IE9 the same behaviour.

One thing I've noticed. This start to occure after I've added to my project
described here 

http://tapestry.1045711.n5.nabble.com/Re-Prototype-IE9-update-td4331824.html

What's wrong? There is my error? Please HELP. I spent 3 days trying to
resolve current issue.


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-1-10-Links-in-Chrome-and-IE9-tp4473624p4473624.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to