From a6f7a4e6d39e8e440a5f5ad1567884939b51506f Mon Sep 17 00:00:00 2001 From: rp825 Date: Thu, 14 Jul 2016 13:23:36 +0100 Subject: [PATCH] from home bug --- app/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes.js b/app/routes.js index 5c419ff..6fa7ea7 100644 --- a/app/routes.js +++ b/app/routes.js @@ -69,7 +69,7 @@ module.exports = function(express,envVariables) { signed_out: req.query.expired, info: req.flash('info'), email: req.session.email, - back_link: req.query.from ? envVariables.applicationServiceURL + req.query.from : '/api/user/usercheck', + back_link: req.query.from ? envVariables.applicationServiceURL + req.query.from == "home" ? '' : req.query.from : '/api/user/usercheck', applicationServiceURL: envVariables.applicationServiceURL, qs: req.query });