Skip to content

Commit

Permalink
Update admin redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnONolan authored Feb 7, 2019
1 parent 1e90126 commit ae5ed03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/web/shared/middlewares/admin-redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit ae5ed03

Please sign in to comment.