Skip to content

Commit 8f89b86

Browse files
author
Vladimir Kotal
committed
request needs to be accessed via pageContext in JSTL
finally fixes #2802
1 parent 32c956e commit 8f89b86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

opengrok-web/src/main/webapp/WEB-INF/tags/project.tag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Portions Copyright (c) 2019, Krystof Tulinger <[email protected]>.
2929

3030
<tr>
3131
<td colspan="3" class="name repository">
32-
<a href="${request.getContextPath()}${Prefix.XREF_P.toString()}/${project.name}"
32+
<a href="${pageContext.request.getContextPath()}${Prefix.XREF_P.toString()}/${project.name}"
3333
title="Xref for project ${Util.htmlize(project.name)}">
3434
${Util.htmlize(project.name)}
3535
</a>

opengrok-web/src/main/webapp/WEB-INF/tags/repository.tag

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Portions Copyright (c) 2019, Krystof Tulinger <[email protected]>.
4747
<c:if test="${isSubrepository && isFirst}">
4848
<tr>
4949
<td class="name repository" colspan="3">
50-
<a href="${request.getContextPath()}${Prefix.XREF_P.toString()}/${project.name}"
50+
<a href="${pageContext.request.getContextPath()}${Prefix.XREF_P.toString()}/${project.name}"
5151
title="Xref for project ${Util.htmlize(project.name)}">
5252
${Util.htmlize(project.name)}
5353
</a>
@@ -57,7 +57,7 @@ Portions Copyright (c) 2019, Krystof Tulinger <[email protected]>.
5757

5858
<tr>
5959
<td class="name ${isSubrepository ? "subrepository" : "repository"}">
60-
<a href="${request.getContextPath()}${Prefix.XREF_P.toString()}/${project.name}"
60+
<a href="${pageContext.request.getContextPath()}${Prefix.XREF_P.toString()}/${project.name}"
6161
title="Xref for project ${Util.htmlize(name)}">
6262
${Util.htmlize(name)}
6363
</a>

0 commit comments

Comments
 (0)