How to Redirect a User to a Specific Page on Frontend Login

On some occasions, you may wish to redirect specific users to specific pages when they login to your website. For example, if a user hasn’t logged in for a long time, then, you may want to redirect him to a specific page where he can see the latest additions to your website. Another example would be when a user logs in for the first time, in this case you may want to redirect him to a guide on how to use your website. Yet another example we can think of is to redirect people belonging to specific groups to specific pages.

Unfortunately, Joomla, by default, cannot do this, but, it can be easily adapted to do so. How? We hear you ask. Well, all you need to do is the following:

  • Download and install Jumi, the Joomla extension which allows you to add PHP code anywhere on your website.
  • Create a Jumi that will read the user’s information and redirect to the proper page.

  • Create an article called Main Login (you can name it anything else), and in that article, insert the Jumi created in the step above.

  • Create a menu item called Main Login that will point to the article created in the previous step.

  • In the login module, choose Main Login as the login redirection page and save the module.

  • That’s it!

As you can see from the above, doing this task is extremely easy, all you need is some basic PHP programming skills. You can also use the same technique to redirect specific users to specific pages on logout.

If you need some help developing the above solution, then feel free to contact us. Our rates are extremely affordable, our work is professional, and we are the friendliest programmers in this galaxy!

No comments yet.

Leave a comment