Repository: tapestry-5 Updated Branches: refs/heads/master 8e7cc4e35 -> 462de6418
TAP5-2279: Returning a link from Ajax event does not cause refresh if URL is the same Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/462de641 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/462de641 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/462de641 Branch: refs/heads/master Commit: 462de641807bd4451ea02557a44f739b40f8c7d5 Parents: 8e7cc4e Author: Howard M. Lewis Ship <[email protected]> Authored: Tue Aug 26 15:39:23 2014 -0700 Committer: Howard M. Lewis Ship <[email protected]> Committed: Tue Aug 26 15:39:23 2014 -0700 ---------------------------------------------------------------------- .../main/coffeescript/META-INF/modules/t5/core/pageinit.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/462de641/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/pageinit.coffee ---------------------------------------------------------------------- diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/pageinit.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/pageinit.coffee index a500ef7..fba32ab 100644 --- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/pageinit.coffee +++ b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/pageinit.coffee @@ -206,7 +206,10 @@ define ["underscore", "./console", "./dom", "./events"], # Extreme case: the data has a redirectURL which forces an immediate redirect to the URL. # No other initialization or callback invocation occurs. if partial?.redirectURL - window.location.href = partial.redirectURL + if window.location.href is partial.redirectURL + window.location.reload true + else + window.location.href = partial.redirectURL return addStylesheets partial?.stylesheets
