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.

Home Page:https://wordpress.org/plugins/view-admin-as/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

JoryHogeveen opened this issue · comments

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.