You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2019/07/28 10:16:34 UTC
[myfaces-tobago] branch master updated: TOBAGO-1633: TS hack to
serve the JS files without ".js" extension * fix contextPath
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new 675f5b8 TOBAGO-1633: TS hack to serve the JS files without ".js" extension * fix contextPath
675f5b8 is described below
commit 675f5b894ffdc5afe6c650fe379de54975eaa7ca
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Sun Jul 28 12:16:18 2019 +0200
TOBAGO-1633: TS hack to serve the JS files without ".js" extension
* fix contextPath
---
.../apache/myfaces/tobago/facelets/HackResourceExtentionFilter.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/HackResourceExtentionFilter.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/HackResourceExtentionFilter.java
index ac3159e..6656751 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/HackResourceExtentionFilter.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/HackResourceExtentionFilter.java
@@ -50,7 +50,8 @@ public class HackResourceExtentionFilter implements Filter {
LOG.info("Filter initialized.");
}
final String version = Package.getPackage("org.apache.myfaces.tobago.component").getImplementationVersion();
- prefix = "/tobago/standard/tobago-bootstrap/" + version + "/js/tobago-";
+ final String contextPath = filterConfig.getServletContext().getContextPath();
+ prefix = contextPath + "/tobago/standard/tobago-bootstrap/" + version + "/js/tobago-";
}
@Override