• I was having problems with users being redirected to a 404 page after login from the homepage.

    I discovered that it was an issue with having wordpress installed in a different directory than my homepage (which is in the root directory). The login widget was redirecting to the WP install directory and not the actual homepage. The good news is that is was an easy fix. I just replaced the following code on line 218 of the plugin:

    $redirect = site_url();

    with

    $redirect = home_url();

    While I know not everyone has a separate install directory, it seems like using “home_url” is a more universal solution that would fit all use cases. I’d recommend making the change in a future update.

    Function_Reference/home_url

    https://www.ads-software.com/plugins/tt-sidebar-login-widget/

  • The topic ‘Login Redirect Bug Fix’ is closed to new replies.