1. Home
  2. Knowledge Base
  3. Uncanny LearnDash Toolkit
  4. Log In/Log Out Redirects

Overview

Ever wish you could redirect learners to a list of their enrolled courses when they sign in or a custom page when they sign out? With the Log In/Log Out Redirect module of the Uncanny LearnDash Toolkit, it’s easy!

By turning this module on and entering URLs in the module settings, all non-administrator users will be directed to the associated URLs on login or logout. (Please note that administrators are ignored by our module, which means they’re typically redirected to /wp-admin/ instead.)

Live Demo

See this module in action on our LearnDash demo site!

Other Redirection Plugins

Important Note: If you have any plugins on your site that can redirect users, in all likelihood they will override this Toolkit redirect. Plugins like Peter’s Login Redirect, Theme My Login and UserPro will all take priority over this module. If you find that our redirect isn’t working, try first disabling any other plugins that may redirect users. If you cannot resolve a redirect issue because something else is overriding this module, we recommending disabling this module and using an alternative like Peter’s Login Redirect, which can override other plugins.

Was this article helpful?

6 replies
  1. Samantha
    Samantha says:

    Created LearnDash course. I followed the Uncanny LearnDash Toolkit tutorial on creating a login/ logout redirect so that anyone who logs in after they purchase my course is redirected to the course page and nothing works. I’ve even uninstalled and re-installed the plug in. I would GREATLY appreciate your suggestions.

    Reply
    • Ryan
      Ryan says:

      It’s likely that something else is overriding the login redirect. If you use WooCommerce, it will. Other plugins can as well. In the note above it doesn’t confirm where users are directed (which might tell us what plugin is doing it), but you might instead try a plugin like Peter’s Login Redirect, which can in turn override other plugin redirect behaviours.

      Reply
      • Samantha Horwitz
        Samantha Horwitz says:

        Thanks Ryan. I did install Peter’s redirect. That didn’t work either. All users, customers, subscribers, admins. When a user logs in it redirects them to create a WordPress account.

        Not super clear how Woocommerce could have any effect. Customers needs to be redirected to cart page, check out page, etc.

        Reply
        • Ryan
          Ryan says:

          Sorry, WooCommerce automatically directs users on login to its My Account page if you use Woo; it’s just one example of plugins that have their own login redirect behaviours. Try disabling other plugins in a Staging environment to try to narrow down the culprit.

          Having said that, from your first paragraph it sounds like users log in then they’re redirected to log in again. That could instead indicate an https/http conflict on your site. Make sure that if you’re using an SSL cert that everything on the site is https.

          Reply
  2. Andrew
    Andrew says:

    I have added a /login/ page with the

    Login

    Forgot Your Password?
    shortcode but when I turn on ‘Front End Login’ and set the ‘Login Page’ to Login, All users get invalid username or password and I am forced to FTP in and kill the plugin. Can you point me towards a solution?

    Reply
    • Ryan
      Ryan says:

      Hi Andrew, make sure that there is no caching whatsoever on your /login/ page. If the host does caching, ask them to exclude that page. Note that this comment is attached to the incorrect Knowledge Base article, and for Toolkit support it’s easier for us to see comments if you log them on the WordPress.org support site.

      Reply

Comments/Questions

Please note that this is not an official support channel and questions/comments may go unanswered.
To request support, log in to your account and click Submit a Request.

Leave a Reply

Your email address will not be published. Required fields are marked *