pressbooks / pressbooks-aldine

Aldine is the default root theme for Pressbooks.
https://pressbooks.org/
GNU General Public License v3.0
11 stars 7 forks source link

Change default redirect behaviour from 'sign in' link #384

Closed SteelWagstaff closed 1 year ago

SteelWagstaff commented 1 year ago

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.)

fdalcin commented 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.