diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/freemarker/config/FreemarkerConfiguration.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/freemarker/config/FreemarkerConfiguration.java index 183855b3d..3fc8e3c83 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/freemarker/config/FreemarkerConfiguration.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/freemarker/config/FreemarkerConfiguration.java @@ -142,7 +142,7 @@ public abstract class FreemarkerConfiguration { List loaders = new ArrayList(); // Theme template loader - only if the theme has a template directory. - String themeTemplatePath = ctx.getRealPath(themeDir) + "/templates"; + String themeTemplatePath = ctx.getRealPath("/" + themeDir) + "/templates"; File themeTemplateDir = new File(themeTemplatePath); if (themeTemplateDir.exists()) { loaders.add(new FreemarkerTemplateLoader(themeTemplateDir));