Skip to content

Commit

Permalink
Fix 5.2 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wtakase committed Feb 6, 2017
1 parent d33694c commit c801986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/proxy/get_suffix_from_path.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = function (path) {
const suffix = path.split('/')[1];
if (['app', 'ui', 'bundles', 'api', 'plugins', 'elasticsearch'].indexOf(suffix) > -1) {
if (['app', 'ui', 'bundles', 'api', 'plugins', 'elasticsearch', 'es_admin'].indexOf(suffix) > -1) {
return null;
} else {
return suffix;
Expand Down
2 changes: 1 addition & 1 deletion server/proxy/init_kibana_proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = function(kbnServer, yarOptions) {
const replacedIndex = getKibanaIndexName(kbnServer, request);
if (replacedIndex) {
const suffix = replacedIndex.slice(kbnServer.config().get('kibana.index').length + 1);
const modifiedPayload = originalPayload.replace(/scope.href/g, 'scope.href.replace("app/kibana", "' + suffix + '/app/kibana")');
const modifiedPayload = originalPayload.replace(/scope.href(:|;)/g, 'scope.href.replace("app/kibana", "' + suffix + '/app/kibana")' + "$1");
if (modifiedPayload !== originalPayload) {
kbnServer.log(['plugin:own-home', 'debug'], 'Replace the string in commons.bundle.js: "app/kibana" => "' + suffix + '/app/kibana"');
} else {
Expand Down

0 comments on commit c801986

Please sign in to comment.