Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug fix - when redirecting, the road callback was not getting invoked.

  • Loading branch information...
commit 2e6c92da6428d212341e2371e493c7ecd6d5c18b 1 parent ea31011
@kishorenc authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/road.js
View
3  lib/road.js
@@ -95,6 +95,7 @@ function redirectOrRenderPlain(req, res, view, viewData, next) {
case 'redirect':
if(!viewData || viewData !== 301) viewData = 302;
res.redirect(view[cType], viewData);
+ handleCallback(null, req, res, next);
break;
default:
renderPlainView(view[cType], cType, req, res, next);
@@ -126,4 +127,4 @@ function renderRichView(controllerName, view, viewData, contentType, req, res, n
function handleCallback(err, req, res, next) {
if(config.callback) return config.callback(err, req, res, next);
else if(err) return next(err);
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.