JoryHogeveen / view-admin-as

View the WordPress admin as a different role, switch between users, temporarily change your capabilities, set default screen settings for roles, manage your roles and capabilities.
https://wordpress.org/plugins/view-admin-as/
GNU General Public License v2.0
45 stars 4 forks source link

Switching to site visitor on frontend should reload instead of redirect to home #76

Closed JoryHogeveen closed 6 years ago

JoryHogeveen commented 6 years ago

When you are viewing as a site visitor you can only see the frontend, so currently I've placed a redirect to home_url() when switching. But if the user is already on the frontend it shouldn't redirect to the frontend but just do a refresh.