mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
removing query params on url
only when you are leaving system tracking
This commit is contained in:
parent
6e05a38d9c
commit
255c4626f4
@ -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')) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user