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 });