1. Home
  2. Knowledge Base
  3. Uncanny Toolkit Pro for LearnDash
  4. Group Login Redirect

The Group Login Redirect module enables you to redirect group members to a group-specific page on login. Once the module is enabled, it adds the login fields below to LearnDash Group edit pages.

Simply enter the redirect URL in the Redirect members on login field.

In most cases, you should leave the Redirect priority field blank.  There are two situations in which you may want to enter a number in the field:

  • If users are in multiple groups with login redirects, the redirect with the highest Redirect priority will take precedence.
  • If you find that users are not being redirected to the desired URL on login, it’s likely that another plugin on your site is overriding the redirect with a redirect of a higher priority.  Enter a number larger than 99 in the Redirect priority field (try 99999 if you absolutely want this redirect to take priority over all others).

Shortcodes

The Group Login Redirect module includes two shortcodes that enable you to create a link to the Group Login Redirect URL. These are:

[uo_group_login_redirect_url]

This shortcode outputs the URL exactly as it is typed into the Redirect members on login field (see above).  This enables usage in a menu (with a plugin like this), button, or image link.

[uo_group_login_redirect_link text=”Portal”]

This shortcode outputs an HTML link using the “text” attribute and the URL in the Redirect members on login field. An example of the code generated would be:

<a href="[URL]">[text]</a>.

Was this article helpful?

6 replies
  1. Sverre
    Sverre says:

    Please note that if you also use the “Log In/Log Out Redirects” module as a fallback, this module has a priority of 999, so it will override the default “Group Login Redirect” priority of 99. And since the priority of “Log In/Log Out Redirects” is non-editable, you will have to _always_ enter at least 1000 in the “Redirect priority” field of “Group Login Redirect”.

    Reply
    • Ryan
      Ryan says:

      No, this is widely used with BuddyBoss. Note that the redirect is based on LearnDash Group membership though, not BuddyBoss social groups (in some cases they’re in sync, not always, so I wanted to make sure the distinction was clear).

      Reply
    • Ryan
      Ryan says:

      No, this plugin doesn’t support role-based redirect. For something like that we might suggest the Peter’s Login Redirect plugin.

      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 *