Fix PolyGerrit URLs to support prefixed URL

This updates most of polygerrit links to use the implementation added in
I2b2d704fe33c90ea2f2a2183fc79897642a48175 .

Change-Id: Ib3bb694969e903fd76a1dad13cfb642bde086142
This commit is contained in:
Paladox none
2017-03-31 14:37:00 +00:00
committed by Paladox
parent d18d602a23
commit 8b0d046dfb
41 changed files with 325 additions and 56 deletions

View File

@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="import" href="../../../behaviors/base-url-behavior/base-url-behavior.html">
<link rel="import" href="../../../bower_components/polymer/polymer.html">
<link rel="import" href="../../../bower_components/iron-dropdown/iron-dropdown.html">
<link rel="import" href="../../shared/gr-button/gr-button.html">

View File

@@ -56,6 +56,10 @@
_hasAvatars: String,
},
behaviors: [
Gerrit.BaseUrlBehavior,
],
attached: function() {
this.$.restAPI.getConfig().then(function(cfg) {
this._hasAvatars = !!(cfg && cfg.plugin && cfg.plugin.has_avatars);
@@ -79,7 +83,7 @@
},
_computeURLHelper: function(host, path) {
return '//' + host + path;
return '//' + host + this.getBaseUrl() + path;
},
_computeRelativeURL: function(path) {