0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

🐛 Fixed redirect to /undefined after authorization for private blog (#9944)

no-issue
This commit is contained in:
ololoken 2018-10-05 13:12:50 +03:00 committed by Fabien O'Carroll
parent b6e80ef557
commit 9f6f01d44a

View file

@ -99,7 +99,7 @@ const privateBlogging = {
return next();
} else {
url = urlService.utils.urlFor({relativeUrl: privateRoute});
url += req.url === '/' ? '' : '?r=' + encodeURIComponent(req.url);
url += '?r=' + encodeURIComponent(req.url);
return res.redirect(url);
}
},