If you select a menu item that is registered or special access and you are not logged in, Joomla will redirect to a default login page.
This is the default login redirect route:
index.php?option=com_user&view=login&return=
What if you want a different login path or go to a custom login page based on some condition. You can accomplish this by modifying the default redirect code in JSite::authorize(). JSite is located in /includes/application.php.
0 Comments.