FELIX-2447 Ensure loading script resources with an absolute path to prevent resource loading failure for detail pages such as /system/console/services/15.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@957836 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/templates/components.html b/webconsole/src/main/resources/templates/components.html
index a574b3e..8d5d65a 100644
--- a/webconsole/src/main/resources/templates/components.html
+++ b/webconsole/src/main/resources/templates/components.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="res/ui/components.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/components.js"></script>
 <script type="text/javascript">
 // <![CDATA[
 var drawDetails = ${__drawDetails__};