Skip to content

Commit

Permalink
Make sure fileUrl is rooted before redirecting.
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillOsenkov committed Sep 9, 2020
1 parent 8c04138 commit 23dc70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SourceIndexServer/wwwroot/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function processHash() {
fileUrl = fileUrl + "#" + createSafeLineNumber(hashOrLine);
}

redirectLocation(s, fileUrl);
redirectLocation(s, "/" + fileUrl);

var pathParts = potentialFile.split("/");
if (pathParts.length > 1) {
Expand Down

0 comments on commit 23dc70b

Please sign in to comment.