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:
parent
b6e80ef557
commit
9f6f01d44a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue