Update admin redirects

Refs https://github.com/TryGhost/Ghost/pull/10079
This commit is contained in:
John O'Nolan 2019-02-07 17:59:35 +07:00 committed by GitHub
parent 1e90126760
commit ae5ed03488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}; };