mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +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(/^\/(logout|signout)\/$/, adminRedirect('#/signout/'));
|
||||||
router.get(/^\/signup\/$/, adminRedirect('#/signup/'));
|
router.get(/^\/signup\/$/, adminRedirect('#/signup/'));
|
||||||
// redirect to /ghost and let that do the authentication to prevent redirects to /ghost//admin etc.
|
// 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;
|
return router;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user