From 5a14b9808f74ce3a1259ec0def5c7e7fb46556be Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Thu, 11 Dec 2014 15:51:18 -0700 Subject: [PATCH] revert 6a3015ea --- src/kibana/utils/routes/_setup.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/kibana/utils/routes/_setup.js b/src/kibana/utils/routes/_setup.js index 3f1a376a40c29..468dba8d2ee12 100644 --- a/src/kibana/utils/routes/_setup.js +++ b/src/kibana/utils/routes/_setup.js @@ -6,6 +6,7 @@ define(function (require) { var firstNoDefaultError = true; var rootSearchSource = Private(require('components/courier/data_source/_root_search_source')); + var allowedRoutesRE = /^\/settings\//; return { routeSetupWork: function () { @@ -17,11 +18,7 @@ define(function (require) { ]) .then(function () { var path = $route.current.$$route.originalPath; - var allowedRoutes = [ - '/settings/indices/', - '/settings/about' - ]; - if (allowedRoutes.indexOf(path) < 0) { + if (!path.match(allowedRoutesRE)) { return courier.indexPatterns.getIds() .then(function (patterns) { if (!config.get('defaultIndex')) {