Closed SteelWagstaff closed 1 year ago
Default behaviour when signing in from the main site redirects the user to the admin panel, however I'm being redirected to https://pressbooks.test/wp/wp-admin/profile.php
instead of the main dashboard on https://pressbooks.test/wp/wp-admin/index.php
. Is that intended?
Signing in from a book context works as expected.
Partial fix for https://github.com/pressbooks/pressbooks/issues/3017. This PR changes default login behaviour for the sign in link on all Aldine menus so that the user is redirected to the user dashboard/admin menu instead of the page they clicked sign-in from. Signing in from book pages will still result in returning to the page logged in from as a logged in user (expected behaviour for private books, etc.)