Add a setting to redirect to referring page after login (v5.x) #904
Labels
Good First Issue
Scope: Improvement
Code changes including new features or enhancements to the library.
Checklist
Describe the problem you'd like to have solved
In v4 of the Auth0 plugin, I believe the default behavior for using the Lock popover widget was that whatever page you were on when you initiated the login action was where you were redirected after login. The v5 configuration only seems to support redirecting to the homepage. I think it's less than ideal UX for both site management as well as for the visitors. For example, if a visitor is on a store product page and then decides that they want to sign in, they shouldn't have to redirect to the home page then re-navigate back to the product page (however many steps that might take).
Describe the ideal solution
It would be great if there was a toggle setting in the plugin's admin for enabling this feature to bring it back into parity with v4 functionality.
Alternatives and current workarounds
I had a ticket in with email support regarding this issue. They pointed me towards hooking into WP's
wp_login
event. I have not implemented it, yet, but I figured it'd be a good QoL tweak for all site admins—perhaps leave the default as it is, then if enabled, it will automatically redirect to the referring page.Additional context
No response
The text was updated successfully, but these errors were encountered: