Search code examples
authenticationhttp-redirectjoomla

Redirect user after login to a secure document Joomla


I got a space on my website which is secured. You need to be connected to access it. If I click on a link in an email to access a page secured, I got redirect to my login page. I type my user/pass and after my login, I am redirect to my page.

However, when I do the same thing, but with a pdf document (and not a page), which is secured, Joomla ask me to log in. I enter my information, but I am not redirect to my document (the link clicked previously), I am redirect to my profile page....

Did someone already solve this problem?

I am using Joomla 3.8.0


Solution

  • You can try catching the event from plugin here is document page: https://docs.joomla.org/Plugin/Events/User and the event you need is onUserLogin