good day
When creating a new record in the component, a link is sent to the admin's mail
http: //localhost/index.php? option = com_aepetitions & view = editpetition & task = editpetition.edit & id = 4
But if the user is not authorized on the site, he is transferred to 1
com_aepetitions \ views \ editpetition \ tmpl \ default.php
http: //localhost/index.php? option = com_aepetitions & view = editpetition
In com_aepetitions \ views \ editpetition \ tmpl \ default.php
made a login form with a redirect to the desired address,
but there is a problem - how can I get the parameter & id = 4
How do I get the id parameter after a redirect?
Reading JFactory :: getApplication () -> input-> get ('id') gives null
What is the chain in Joomla MVC when opening a link
http: //localhost/index.php? option = com_aepetitions & view = editpetition & task = editpetition.edit & id = 4
so that it was possible for an unauthorized user to write the id parameter somewhere?