Re: No redirect if current client url equals redirect url

2014-01-30 Thread Oleg Gulyaev
> I created jira TAP5-2279 Thanks for your help! It will be a useful fix. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: No redirect if current client url equals redirect url

2014-01-30 Thread Lance Java
I created jira TAP5-2279 On 30 Jan 2014 09:30, "Lance Java" wrote: > It sounds like the browser is trying to be smart. Please file a jira. > > I guess we need some clientside logic to refresh the page if the URL is > the same. >

Re: No redirect if current client url equals redirect url

2014-01-30 Thread Lance Java
It sounds like the browser is trying to be smart. Please file a jira. I guess we need some clientside logic to refresh the page if the URL is the same.

Re: No redirect if current client url equals redirect url

2014-01-30 Thread Oleg Gulyaev
On 30 янв. 2014 г., at 11:59, Lance Java wrote: > I wonder if this is a browser 'feature' (ie only refresh if the URL changes > from current) > > Do you see this behaviour in all browsers? Same behavior on Chrome, Firefox, Opera on Ubuntu and Safari on Mac OS X. Well, it seems like browser be

Re: No redirect if current client url equals redirect url

2014-01-30 Thread Lance Java
FYI I'm assuming Tapestry does something like window.location.href = redirectURL On 30 Jan 2014 07:59, "Lance Java" wrote: > Hmm... Looks good to me. > > I wonder if this is a browser 'feature' (ie only refresh if the URL > changes from current) > > Do you see this behaviour in all browsers? >

Re: No redirect if current client url equals redirect url

2014-01-30 Thread Lance Java
Hmm... Looks good to me. I wonder if this is a browser 'feature' (ie only refresh if the URL changes from current) Do you see this behaviour in all browsers? On 30 Jan 2014 07:27, "Oleg Gulyaev" wrote: > Yes, I found it, here it is: > > { > "redirectURL" : "/comments/52e9f9e5e4b0ba0bb02

Re: No redirect if current client url equals redirect url

2014-01-29 Thread Oleg Gulyaev
Yes, I found it, here it is: { "redirectURL" : "/comments/52e9f9e5e4b0ba0bb0273298/3?page=1#com" } On 30 янв. 2014 г., at 11:23, Lance Java wrote: > I want to see the response body which will be a json string. > On 30 Jan 2014 07:20, "Oleg Gulyaev" wrote: > On 29 янв. 2014 г., at 19:3

Re: No redirect if current client url equals redirect url

2014-01-29 Thread Lance Java
I want to see the response body which will be a json string. On 30 Jan 2014 07:20, "Oleg Gulyaev" wrote: > On 29 янв. 2014 г., at 19:37, Lance Java > wrote: > > Can you post the response body from the ajax request? (using dev tools in > your browser) > > > I wasn’t sure exactly what you need, s

Re: No redirect if current client url equals redirect url

2014-01-29 Thread Oleg Gulyaev
On 29 янв. 2014 г., at 20:31, Thiago H de Paula Figueiredo wrote: > That's weird, because if you return a Link in an event handler, no matter if > it's called by AJAX or not, it should cause a redirection. If not, check > whether some exception happened server- or client-side. I checked, no

Re: No redirect if current client url equals redirect url

2014-01-29 Thread Thiago H de Paula Figueiredo
On Wed, 29 Jan 2014 13:01:35 -0200, Oleg Gulyaev wrote: Hi all! Hi! I return a link from an ajax event handler, which can refresh zone or redirect to some url. That's weird, because if you return a Link in an event handler, no matter if it's called by AJAX or not, it should cause a r

Re: No redirect if current client url equals redirect url

2014-01-29 Thread Lance Java
Can you post the response body from the ajax request? (using dev tools in your browser)

No redirect if current client url equals redirect url

2014-01-29 Thread Oleg Gulyaev
Hi all! I return a link from an ajax event handler, which can refresh zone or redirect to some url. In some situations, client get redirect url which equals his currently open page url, and Tapestry don’t redirect in this case (as I understood, this mechanism is somewhere in Tapestry .js core).