You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Lance (JIRA)" <ji...@apache.org> on 2014/01/30 12:20:12 UTC
[jira] [Commented] (TAP5-2279) Returning a link from Ajax event
does not cause refresh if URL is the same
[ https://issues.apache.org/jira/browse/TAP5-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13886506#comment-13886506 ]
Lance commented on TAP5-2279:
-----------------------------
pageinit.coffee - current
{code}
if partial?.redirectURL
window.location.href = partial.redirectURL
return
{code}
pageinit.coffee - possible fix
{code}
if partial?.redirectURL
if (window.location.href == partial.redirectURL) {
window.location.reload(true)
} else {
window.location.href = partial.redirectURL
}
return
{code}
> Returning a link from Ajax event does not cause refresh if URL is the same
> --------------------------------------------------------------------------
>
> Key: TAP5-2279
> URL: https://issues.apache.org/jira/browse/TAP5-2279
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Reporter: Lance
>
> When returning a link from an ajax event, the page does not refresh if the URL is the same as the current URL.
> Sample ajax response
> {code}
> {
> "redirectURL" : "/comments/52e9f9e5e4b0ba0bb0273298/3?page=1#com"
> }
> {code}
> A workaround is to include a unique parameter at the end of the URL. This behaviour occurs in Chrome, Firefox, Opera on Ubuntu and Safari on Mac OS X
> Forum thread here:
> http://tapestry.markmail.org/search/?q=list%3Aorg.apache.tapestry.users#query:list%3Aorg.apache.tapestry.users+page:1+mid:ac72fr7frzt6ph5l+state:results
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)