Skip to content

Commit 0d78685

Browse files
authored
Merge pull request #1746 from vladak/xref_redirect_return
need to return after redirect
2 parents d071f6f + 4a13459 commit 0d78685

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/org/opensolaris/opengrok/web/PageConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ public String getLatestRevisionLocation() {
12371237

12381238
sb.append(req.getContextPath());
12391239
sb.append(Prefix.XREF_P);
1240-
sb.append(path);
1240+
sb.append(Util.URIEncodePath(path));
12411241
sb.append("?r=");
12421242
sb.append(Util.URIEncode(getLatestRevision()));
12431243

web/list.jsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ document.pageReady.push(function() { pageReadyList();});
254254
String location = cfg.getLatestRevisionLocation();
255255
if (location != null) {
256256
response.sendRedirect(location);
257+
return;
257258
} else {
258259
xrefFile = cfg.findDataFile();
259260
}

0 commit comments

Comments
 (0)