Skip to content

Commit

Permalink
[es] Fix ipv6 addresses used with angular connector (#29891)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Feb 26, 2019
1 parent 1548423 commit 0fe19bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/legacy/ui/public/chrome/api/angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ export function initAngularApi(chrome, internals) {
.value('esUrl', (function () {
const a = document.createElement('a');
a.href = chrome.addBasePath('/elasticsearch');
return a.href;
return {
host: a.hostname,
port: a.port,
protocol: a.protocol,
pathname: a.pathname
};
}()))
.config($locationProvider => {
$locationProvider.html5Mode({
Expand Down

0 comments on commit 0fe19bd

Please sign in to comment.