Skip to content
Extraits de code Groupes Projets
Valider ed29aaac rédigé par Stefan Giehl's avatar Stefan Giehl
Parcourir les fichiers

Merge pull request #8894 from piwik/8845

Clicking too fast can result in nothingness
parents 7fc03f34 1b56e7ab
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -84,8 +84,10 @@ ...@@ -84,8 +84,10 @@
hash = hash.substring(1); hash = hash.substring(1);
} }
} }
if (hash) { if (location.hash === '#?' + hash) {
loadCurrentPage(); // it would not trigger a location change success event as URL is the same, call it manually
} else if (hash) {
$location.search(hash); $location.search(hash);
} else { } else {
// NOTE: this works around a bug in angularjs. when unsetting the hash (ie, removing in the URL), // NOTE: this works around a bug in angularjs. when unsetting the hash (ie, removing in the URL),
...@@ -98,4 +100,4 @@ ...@@ -98,4 +100,4 @@
setTimeout(function () { $rootScope.$apply(); }, 1); setTimeout(function () { $rootScope.$apply(); }, 1);
} }
} }
})(window, jQuery, broadcast); })(window, jQuery, broadcast);
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter