Skip to content

Commit 1d8d13f

Browse files
author
deiu
committed
Fixed redirect to work when ldnode is mounted on a route
1 parent 8cefcc3 commit 1d8d13f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/handlers/get.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function get(req, res, includeBody) {
117117

118118
// redirect to file browser if we got text/html with highest priority
119119
if (res.acceptTypes.indexOf('text/html') === 0) {
120-
return res.redirect(303, browseSkin + req.protocol + '/' + req.get('host') + req.path);
120+
return res.redirect(303, browseSkin + req.protocol + '/' + req.get('host') + req.originalUrl);
121121
}
122122

123123
// TODO this should be added as a middleware in the routes

0 commit comments

Comments
 (0)