mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
Update admin redirects
Refs https://github.com/TryGhost/Ghost/pull/10079
This commit is contained in:
parent
1e90126760
commit
ae5ed03488
@ -14,7 +14,7 @@ module.exports = function adminRedirects() {
|
||||
router.get(/^\/(logout|signout)\/$/, adminRedirect('#/signout/'));
|
||||
router.get(/^\/signup\/$/, adminRedirect('#/signup/'));
|
||||
// redirect to /ghost and let that do the authentication to prevent redirects to /ghost//admin etc.
|
||||
router.get(/^\/((ghost-admin|admin|wp-admin|dashboard|signin|login)\/?)$/, adminRedirect('/'));
|
||||
router.get(/^\/((ghost-admin|admin|dashboard|signin|login)\/?)$/, adminRedirect('/'));
|
||||
|
||||
return router;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user