YARN-6258. localBaseAddress for CORS proxy configuration is not working when suffixed with forward slash in new YARN UI. Contributed by Gergely Novák.

This commit is contained in:
Sunil G 2017-04-07 11:42:50 +05:30
parent e7167e4a13
commit ad24464be8
1 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,11 @@ export default Ember.Service.extend({
},
localBaseAddress: Ember.computed(function () {
return this.localAddress();
var url = this.localAddress();
if (url.endsWith('/')) {
url = url.slice(0, -1);
}
return url;
}),
timelineWebAddress: Ember.computed(function () {