1.1 --- a/src/main/webapp/WEB-INF/jsp/site.jsp Wed May 13 21:10:23 2020 +0200 1.2 +++ b/src/main/webapp/WEB-INF/jsp/site.jsp Wed May 13 21:46:26 2020 +0200 1.3 @@ -30,6 +30,9 @@ 1.4 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 1.5 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 1.6 1.7 +<%-- Make the base href easily available at request scope --%> 1.8 +<c:set scope="request" var="baseHref" value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/" /> 1.9 + 1.10 <%-- Define an alias for the request path --%> 1.11 <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/> 1.12 1.13 @@ -56,7 +59,7 @@ 1.14 <!DOCTYPE html> 1.15 <html> 1.16 <head> 1.17 - <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/"> 1.18 + <base href="${baseHref}"> 1.19 <title>LightPIT - 1.20 <fmt:bundle basename="${moduleInfo.bundleBaseName}"> 1.21 <fmt:message key="${moduleInfo.titleKey}" />