Joomla & WordPress Tutorials, Info, Discussion, Tips | GavickPro Blog

Auto-redirect to the login page

Suppose you have a menu item that requires the user to be logged to be able to enter it. Do you want all users to see the link in the menu, and you logged on. If logged in user selects this menu item, pass on the relevant page. If you set the menu item simply an Access Level: Registered – logged on user will see an error page 403, which of course is not advisable.

Conversely, if the user chooses not logged position are:

If he is not registered, has the option to register or go to another page.

Here’s a tip how to achieve this effect in Joomla:

Now, when a surfer (unregistered user) selects the menu the link will be redirected to the login page and after successful login you will be moved to the desired page. If it is offline, it will be immediately transferred to the desired page. This works for both the Joomla! 1.5, and the latest edition of Joomla! 1.7.

As described above, the method also has its disadvantages eg. when the position of a hidden menu – registered / special is child position. That’s way you could also use 403 Page Redirect to Account Login method (link) for Joomla! 1.5 .

Auto-redirect to the login page 5.005 (100.00%) 3 votes
Share