Index: lams_tool_forum/web/includes/header.jsp =================================================================== diff -u -r8e2dfda803051c4619c62a27b5d4dcef3324e5f3 -r2c810bb0c592aa2a70f4c858f1b81a2e61c6012b --- lams_tool_forum/web/includes/header.jsp (.../header.jsp) (revision 8e2dfda803051c4619c62a27b5d4dcef3324e5f3) +++ lams_tool_forum/web/includes/header.jsp (.../header.jsp) (revision 2c810bb0c592aa2a70f4c858f1b81a2e61c6012b) @@ -1,7 +1,18 @@ <%@ include file="/includes/taglibs.jsp" %> +<% +String protocol = request.getProtocol(); +if(protocol.startsWith("HTTPS")){ + protocol = "https://"; +}else{ + protocol = "http://"; +} +String pathToRoot = protocol+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; +String pathToShare = protocol+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/../../../.."; +%>