mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
removing query params on url
only when you are leaving system tracking
This commit is contained in:
@@ -1046,9 +1046,11 @@ var tower = angular.module('Tower', [
|
|||||||
},2000);
|
},2000);
|
||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.$on("$routeChangeStart", function (event, next) {
|
$rootScope.$on("$routeChangeStart", function (event, next, prev) {
|
||||||
// this line removes the query params attached to a route
|
// 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
|
// Before navigating away from current tab, make sure the primary view is visible
|
||||||
if ($('#stream-container').is(':visible')) {
|
if ($('#stream-container').is(':visible')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user