From 4be8f3ec753b5239ca4d0c850419eb5abb7239b8 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 18 Nov 2014 23:27:40 -0500 Subject: [PATCH] closes #2316 --- src/controllers/accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/accounts.js b/src/controllers/accounts.js index 4c49330c79..e0d15c446c 100644 --- a/src/controllers/accounts.js +++ b/src/controllers/accounts.js @@ -130,7 +130,7 @@ accountsController.getAccount = function(req, res, next) { if (res.locals.isAPI) { req.params.userslug = lowercaseSlug; } else { - res.redirect(nconf.get('relative_path') + '/user/' + lowercaseSlug); + return res.redirect(nconf.get('relative_path') + '/user/' + lowercaseSlug); } }