Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Yiannis Christodoulou

    (@yiannistaos)

    Hi @kja4u,

    Thanks for your message and your kind words for our plugin.

    It seems that its a bug and thanks for letting me know.

    Can you try something, please?

    Open the file /wp-content/plugins/login-as-user/includes/class-w357-login-as-user.php, navigate to line 448, and do this replacement.

    FROM:

    $current_url = urlencode(wp_unslash(site_url($_SERVER['REQUEST_URI'])));

    TO:

    $current_url = urlencode(wp_unslash("https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"));

    Save, close, upload, and let me know if it works now.

    Thanks.

    Thread Starter KJA4U

    (@kja4u)

    Hello Yiannis Christodoulou,

    Thanks for you quick and informative response. I applied your instructions and the issue was fixed successfully. Appreciate it.

    I was wondering if it is possible to return back to the users list in the admin dashboard after clicking on “go back to admin as..”, instead of returning to the main page of the admin dashboard and clicking again on the All members section.

    Best regards

    • This reply was modified 7 months, 3 weeks ago by KJA4U.
    Plugin Author Yiannis Christodoulou

    (@yiannistaos)

    You’re very welcome, @kja4u. ??

    Glad that worked. I will include this bugfix in the upcoming release.

    By default, after clicking on the login as user button and then “go back to admin as…” you will return in the page you were before, not in admin dashboard.

    I’ve recorded a video to look at how it works in my local installation https://youtu.be/VcOXk-GIXUQ.

    Does it works the same on your website?

    Thread Starter KJA4U

    (@kja4u)

    Hi,

    In my live site it just returns me to the main page of the dashboard. In my local hosted test site it returns me to the members list in the admin dashboard. Try testing it on a live hosted site to see if it works as required.

    Regards

    Plugin Author Yiannis Christodoulou

    (@yiannistaos)

    Hi @kja4u,

    Thanks for letting me know.

    Can you provide me the base wp url structure? Do you have subdomain, or subfolder on your production site?

    e.g. it look like this? https://subdomain.domain.com/subfolder/

    or its https://domain.com? without subdomain, subfolder?

    Thread Starter KJA4U

    (@kja4u)

    Hi,

    My live wp website base URL is like this: https://domain.com/subfolder/

    Hope you can figure out the cause of the issue.

    Regards

    • This reply was modified 7 months, 3 weeks ago by KJA4U.
    Plugin Author Yiannis Christodoulou

    (@yiannistaos)

    Hi @kja4u,

    I’ve tried it also with a subfolder, and it works perfectly.

    Do you have any other plugin that handles this redirection? Can you try it on another WordPress site? Is there a staging/test environment where we can make some tests together?

    Thread Starter KJA4U

    (@kja4u)

    HI Yiannis Christodoulou,

    I have tried it on another website, the same situation, it redirects to the main page of the admin dashboard. Anyhow, it’s not a big deal, the plugin indeed a must for any admin who wants to test and provide support to the website users. Speaking about a staging website, actually i have only the one locally hosted in my PC. I really appreciate your cooperation.

    Regards

    Plugin Author Yiannis Christodoulou

    (@yiannistaos)

    Thanks for letting me know @kja4u

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘404 not found page when click to go back to admin’ is closed to new replies.