1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 08:48:54 +00:00

[TASK] Port number 80 removed in URLs

This commit is contained in:
maximesinclair 2013-11-23 23:55:22 +01:00
parent ac9d0e02ca
commit 76ad7acd21

View File

@ -3,6 +3,9 @@
<c:set var="contextroot" value="${pageContext.request.contextPath}" />
<c:set var="hostpath" value="http://${pageContext.request.serverName}:${pageContext.request.serverPort}${contextroot}" />
<c:if test="${pageContext.request.serverPort == 80 }">
<c:set var="hostpath" value="http://${pageContext.request.serverName}${contextroot}" />
</c:if>
<c:if test="${!empty encoded}">
<c:set var="imgurl" value="${hostpath}/img/${encoded}" />
<c:set var="svgurl" value="${hostpath}/svg/${encoded}" />