express-redirect
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -16,3 +16,4 @@ // module dependencies | ||
parsed += "/"; | ||
if(key.name in params) | ||
if(params[key.name]) | ||
parsed += params[key.name]; | ||
@@ -19,0 +20,0 @@ else if(key.def) |
@@ -21,3 +21,6 @@ // module dependencies | ||
this.all(route, function(req, res, next) { | ||
res.redirect(status, compile(req.params, target)); | ||
var compiled = compile(req.params, target); | ||
if(compiled != req.url) res.redirect(status, compiled); | ||
else next(); | ||
}); | ||
@@ -24,0 +27,0 @@ |
{ | ||
"name": "express-redirect", | ||
"description": "Flexible redirection plugin", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Jan Buschtöns <buschtoens@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10628
312