diff --git a/x-pack/legacy/plugins/graph/public/app.js b/x-pack/legacy/plugins/graph/public/app.js index 77f92693b3561..3f01c73bf6265 100644 --- a/x-pack/legacy/plugins/graph/public/app.js +++ b/x-pack/legacy/plugins/graph/public/app.js @@ -553,7 +553,7 @@ app.controller('graphuiPlugin', function ( //== Drill-down functionality == const defaultKibanaQuery = ',query:(query_string:(analyze_wildcard:!t,query:\'*\'))'; - const drillDownRegex = /\{\{gquery\}\}/; + const drillDownRegex = /\{\{gquery\}\}/g; $scope.checkForKibanaUrl = function () { $scope.suggestTemplateFix = $scope.newUrlTemplate.url === $scope.lastPastedURL &&