Skip to content

Commit

Permalink
redirect logout to original page
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbenz committed Mar 18, 2016
1 parent 7ca9a1f commit 1a6787d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/amp-access/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ router.get('/logout', function(req, res) {
PaywallAccess.deleteByEmail(email);
res.clearCookie('email');
}
res.redirect("/");
res.redirect(req.header('Referer') || '/');
});

module.exports = router;

0 comments on commit 1a6787d

Please sign in to comment.