Skip to content

Commit 23dc70b

Browse files
committed
Make sure fileUrl is rooted before redirecting.
1 parent 8c04138 commit 23dc70b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SourceIndexServer/wwwroot/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function processHash() {
139139
fileUrl = fileUrl + "#" + createSafeLineNumber(hashOrLine);
140140
}
141141

142-
redirectLocation(s, fileUrl);
142+
redirectLocation(s, "/" + fileUrl);
143143

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

0 commit comments

Comments
 (0)