summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Borowitz <dborowitz@google.com>2018-09-27 14:24:32 -0700
committerDave Borowitz <dborowitz@google.com>2018-09-27 14:24:32 -0700
commitf0d0b1b0a0f1680bc0d1f59570d3eb68c85fa4d3 (patch)
tree9860fae85ddcb4e6fef69cffe80595546aa0c32f
parent63e82dbfa27c031575bf73d62d508e38ae278705 (diff)
Append $assetsBundle using templates rather than +
Concatenating a TrustedResourceUrl to a string using + results in an invalid object. Appending them with normal template interpolation works fine. The existing expression was also missing an intervening "/". Change-Id: Id1d629a6978abef83b2421a0f56c4a05b99a1c76
-rw-r--r--resources/com/google/gerrit/httpd/raw/PolyGerritIndexHtml.soy2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/com/google/gerrit/httpd/raw/PolyGerritIndexHtml.soy b/resources/com/google/gerrit/httpd/raw/PolyGerritIndexHtml.soy
index f401735da4..816dd23988 100644
--- a/resources/com/google/gerrit/httpd/raw/PolyGerritIndexHtml.soy
+++ b/resources/com/google/gerrit/httpd/raw/PolyGerritIndexHtml.soy
@@ -65,7 +65,7 @@
//
// github.com/Polymer/polymer-resin/blob/master/getting-started.md#integrating
{if $assetsPath and $assetsBundle}
- <link rel="import" href="{$assetsPath + $assetsBundle}">{\n}
+ <link rel="import" href="{$assetsPath}/{$assetsBundle}">{\n}
{/if}
<link rel="preload" href="{$staticResourcePath}/elements/gr-app.js" as="script" crossorigin="anonymous">{\n}