diff options
Diffstat (limited to 'plugins/CoreHome/javascripts/broadcast.js')
-rw-r--r-- | plugins/CoreHome/javascripts/broadcast.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/CoreHome/javascripts/broadcast.js b/plugins/CoreHome/javascripts/broadcast.js index eecbc79a95..2c6fad9eb5 100644 --- a/plugins/CoreHome/javascripts/broadcast.js +++ b/plugins/CoreHome/javascripts/broadcast.js @@ -338,6 +338,15 @@ var broadcast = { // Now load the new page. var newUrl = currentSearchStr + currentHashStr; + var $rootScope = piwikHelper.getAngularDependency('$rootScope'); + if ($rootScope) { + $rootScope.$on('$locationChangeStart', function (event) { + if (event) { + event.preventDefault(); + } + }) + } + if (oldUrl == newUrl) { window.location.reload(); } else { |