remove query string on URL

when navigating thru tower we do not want query params to persist when routes change
This commit is contained in:
Jared Tabor 2015-06-19 16:10:53 -04:00
parent b6c18fcc13
commit 133e3cd675

View File

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