KNOX-723 qualifying the login page resources with the frontend path
diff --git a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
index 4d03e9a..8f79bf7 100644
--- a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
+++ b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
@@ -34,18 +34,31 @@
</rule>
<rule dir="OUT" name="AMBARIUI/ambari/outbound/whitelogo">
- <rewrite template="img/logo-white.png"/>
+ <rewrite template="{$frontend[path]}/ambari/img/logo-white.png"/>
</rule>
<rule dir="OUT" name="AMBARIUI/ambari/outbound/logohref">
<rewrite template="#/main/dashboard"/>
</rule>
<rule dir="OUT" name="AMBARIUI/ambari/outbound/ambariview">
- <rewrite template="img/ambari-view-default.png"/>
+ <rewrite template="{$frontend[path]}/ambari/img/ambari-view-default.png"/>
</rule>
<rule dir="OUT" name="AMBARIUI/ambari/outbound/img" pattern="/img/{**}">
<rewrite template="{$frontend[url]}/ambari/img/{**}"/>
</rule>
+ <rule dir="OUT" name="AMBARIUI/ambari/outbound/img" pattern="stylesheets/vendor.css">
+ <rewrite template="{$frontend[path]}/ambari/stylesheets/vendor.css"/>
+ </rule>
+ <rule dir="OUT" name="AMBARIUI/ambari/outbound/img" pattern="stylesheets/app.css">
+ <rewrite template="{$frontend[path]}/ambari/stylesheets/app.css"/>
+ </rule>
+ <rule dir="OUT" name="AMBARIUI/ambari/outbound/img" pattern="javascripts/vendor.js">
+ <rewrite template="{$frontend[path]}/ambari/javascripts/vendor.js"/>
+ </rule>
+ <rule dir="OUT" name="AMBARIUI/ambari/outbound/img" pattern="javascripts/app.js">
+ <rewrite template="{$frontend[path]}/ambari/javascripts/app.js"/>
+ </rule>
+
<filter name="AMBARIUI/ambari/outbound/proxyroot">
<content type="*/x-javascript">
<apply path="\{proxy_root\}" rule="AMBARIUI/ambari/outbound/sitepath"/>