Am trying to modify an already heavily modified joomla environment. I am not a Joomla dev so am a little lost in the wilderness, so to speak.
Basically, 99% of the site consists of articles with Access Level = Registered. When you hit the URL of one of these articles, Joomla redirects to an auth page. That makes sense, except the URL to the original article is lost so after login, you are redirected back to the homepage and not the article originally intended.
Now, I can see that the error.php page has been modified with code to intercept a 403 error, and this looks like it should work. BUT, somehow/somewhere Joomla is redirecting to the auth page in some other way, and no 403 is ever thrown.
So my question is, how does Joomla perform the redirect to the auth page (a custom plugin btw), and is there any way for Joomla to instead throw the 403 error so I can use the logic already coded in error.php.
Thanks in advance
ps it's Joomla 1.5.23 and PHP 5.2.17