diff --git a/ccm-ldn-theme/src/com/arsdigita/london/theme/ThemeConstants.java b/ccm-ldn-theme/src/com/arsdigita/london/theme/ThemeConstants.java index e694f123c..999604617 100755 --- a/ccm-ldn-theme/src/com/arsdigita/london/theme/ThemeConstants.java +++ b/ccm-ldn-theme/src/com/arsdigita/london/theme/ThemeConstants.java @@ -28,7 +28,7 @@ public interface ThemeConstants { // TODO: it would be nice if this value in com.arsdigita.web.URL // was public public final static String CCM_PREFIX = "__ccm__"; - public final static String WEB_APP_NAME = "ccm-ldn-theme"; + public final static String WEB_APP_NAME = "ROOT"; // The location of the sync jsp used to sync up the multiple servers. public final static String SYNC_JSP = "sync-theme.jsp"; diff --git a/ccm-ldn-theme/src/com/arsdigita/london/theme/ui/ThemeXSLParameterGenerator.java b/ccm-ldn-theme/src/com/arsdigita/london/theme/ui/ThemeXSLParameterGenerator.java index 7fa3dd152..7f002d76f 100755 --- a/ccm-ldn-theme/src/com/arsdigita/london/theme/ui/ThemeXSLParameterGenerator.java +++ b/ccm-ldn-theme/src/com/arsdigita/london/theme/ui/ThemeXSLParameterGenerator.java @@ -73,7 +73,8 @@ public class ThemeXSLParameterGenerator implements XSLParameterGenerator, } if (themeURL != null) { - return "/" + WEB_APP_NAME + "/" + CCM_PREFIX + "/" + + // return "/" + WEB_APP_NAME + "/" + CCM_PREFIX + "/" + + return "/" + CCM_PREFIX + "/" + Web.getContext().getRequestURL().getContextPath() + baseDir + themeURL; } else { @@ -88,4 +89,4 @@ public class ThemeXSLParameterGenerator implements XSLParameterGenerator, return themeURL; } } -} +}