diff --git a/static/js/app.js b/static/js/app.js index 4dd16996f..8aed08782 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -4791,6 +4791,10 @@ quayApp.run(['$location', '$rootScope', 'Restangular', 'UserService', 'PlanServi }); $rootScope.$on('$routeChangeSuccess', function (event, current, previous) { + $rootScope.current = current.$$route; + + if (!current.$$route) { return; } + if (current.$$route.title) { $rootScope.title = current.$$route.title; } @@ -4802,7 +4806,6 @@ quayApp.run(['$location', '$rootScope', 'Restangular', 'UserService', 'PlanServi } $rootScope.fixFooter = !!current.$$route.fixFooter; - $rootScope.current = current.$$route; }); $rootScope.$on('$viewContentLoaded', function(event, current) {