PolyGerrit: Fix documentation links

Follows-Up: f4a0eeb648

Bug: Issue 6073
Change-Id: I6d12c50fb2da6687a88f9db794e21996e23744a1
This commit is contained in:
Paladox none 2017-04-25 19:26:30 +00:00
parent 9e14e59e22
commit 02ca95afa9

View File

@ -220,7 +220,7 @@
_loadConfig: function() {
this.$.restAPI.getConfig().then(function(config) {
if (config && config.gerrit) {
if (config && config.gerrit && config.gerrit.doc_url) {
this._docBaseUrl = config.gerrit.doc_url;
}
if (!this._docBaseUrl) {
@ -230,9 +230,9 @@
},
_probeDocLink: function(path) {
return this.$.restAPI.probePath(path).then(function(ok) {
return this.$.restAPI.probePath(this.getBaseUrl() + path).then(function(ok) {
if (ok) {
this._docBaseUrl = '/Documentation';
this._docBaseUrl = this.getBaseUrl() + '/Documentation';
} else {
this._docBaseUrl = null;
}