Skip to content
Browse files

Upgrade pjax to 857b1d5

  • Loading branch information...
1 parent 7daf2f1 commit 23742e767eebc3368d061bd4eb778a5a2dc6bb21 @josh josh committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 vendor/assets/javascripts/jquery.pjax.js
View
6 vendor/assets/javascripts/jquery.pjax.js
@@ -200,14 +200,14 @@ function pjax(options) {
var allowed = fire('pjax:error', [xhr, textStatus, errorThrown, options])
if (textStatus !== 'abort' && allowed)
- window.location = container.url
+ window.location.replace(container.url)
}
options.success = function(data, status, xhr) {
var container = extractContainer(data, xhr, options)
if (!container.contents) {
- window.location = container.url
+ window.location.replace(container.url)
return
}
@@ -381,7 +381,7 @@ function onPjaxPopstate(event) {
// scroll position.
container[0].offsetHeight
} else {
- window.location = location.href
+ window.location.replace(location.href)
}
}
}

0 comments on commit 23742e7

Please sign in to comment.
Something went wrong with that request. Please try again.