mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Improve baseUrl function.
This commit is contained in:
parent
746fb019d3
commit
3d703e48e8
1 changed files with 1 additions and 4 deletions
|
@ -34,8 +34,5 @@ getUrl.noAuth = function getUrlNoAuth(config, app) {
|
|||
};
|
||||
|
||||
getUrl.baseUrl = function getBaseUrl(config) {
|
||||
config = _.pick(config, function (val, param) {
|
||||
return param !== 'auth' & param !== 'pathname' & param !== 'hash';
|
||||
});
|
||||
return url.format(config);
|
||||
return url.format(_.pick(config, 'protocol', 'hostname', 'port'));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue