diff --git a/util/gh-pages/script.js b/util/gh-pages/script.js index bd4293662a0..b961b7d2d96 100644 --- a/util/gh-pages/script.js +++ b/util/gh-pages/script.js @@ -270,7 +270,7 @@ }, true); // Watch for changes in the URL path and update the search and lint display - $scope.$watch($location.path, function (newPath) { + $scope.$watch(function () { return $location.path(); }, function (newPath) { const searchParameter = newPath.substring(1); if ($scope.search !== searchParameter) { $scope.search = searchParameter; @@ -292,12 +292,12 @@ } }); - $scope.$watch($location.search, function (newParameters) { + $scope.$watch(function () { return $location.search(); }, function (newParameters) { if (!internalURLChange) { loadFromURLParameters(); } internalURLChange = false; - }); + }, true); $scope.updatePath = function () { if (debounceTimeout) {