Change-Id: I0e556b4dde914e0c8eeaccb9c6e5c703225a46ff
- private static String staticTemplateVarHttp = "http://" + ServerConstants.getStaticHostNamePort();
-
- private static String staticTemplateVarHttps = "https://" + ServerConstants.getStaticHostNamePortSecure();
-
- private static String getStaticTemplateVar(boolean https) {
- if (https) {
- return staticTemplateVarHttps;
- } else {
- return staticTemplateVarHttp;
- }
- }
+ private static String staticTemplateVar = "//" + ServerConstants.getStaticHostNamePort();
@Override
protected void service(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
@Override
protected void service(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
vars.put(Menu.AUTH_VALUE, currentAuthContext);
vars.put("menu", rootMenu);
vars.put("title", lang.getTranslation(p.getTitle()));
vars.put(Menu.AUTH_VALUE, currentAuthContext);
vars.put("menu", rootMenu);
vars.put("title", lang.getTranslation(p.getTitle()));
- vars.put("static", getStaticTemplateVar(isSecure));
+ vars.put("static", staticTemplateVar);
vars.put("year", Calendar.getInstance().get(Calendar.YEAR));
vars.put("content", content);
if (currentAuthContext != null) {
vars.put("year", Calendar.getInstance().get(Calendar.YEAR));
vars.put("content", content);
if (currentAuthContext != null) {