removing query params on url

only when you are leaving system tracking
This commit is contained in:
Jared Tabor 2015-06-25 16:31:34 -04:00
parent 6e05a38d9c
commit 255c4626f4

View File

@ -1046,9 +1046,11 @@ var tower = angular.module('Tower', [
},2000);
});
$rootScope.$on("$routeChangeStart", function (event, next) {
$rootScope.$on("$routeChangeStart", function (event, next, prev) {
// this line removes the query params attached to a route
$location.search('');
if(prev.$$route.name === 'systemTracking'){
$location.replace($location.search('').$$url);
}
// Before navigating away from current tab, make sure the primary view is visible
if ($('#stream-container').is(':visible')) {