From 255c4626f4e7a19cba3b5a0aba3a20e64091e65a Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Thu, 25 Jun 2015 16:31:34 -0400 Subject: [PATCH] removing query params on url only when you are leaving system tracking --- awx/ui/static/js/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/app.js b/awx/ui/static/js/app.js index 1d54706f30..41f795e625 100644 --- a/awx/ui/static/js/app.js +++ b/awx/ui/static/js/app.js @@ -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')) {