I created following URL (that I am sending via email to the user):
$form->data['redirect_url'] = urlencode(base64_encode("http://www.domain.it/" . $form->data['link_form'] . "?id_risposta=" . $form->data['id_risposta']));
$form->data['link_modifica_bozza'] = "http://www.domain.it/component/users/?view=login&return=" . $form->data['redirect_url'];
This means that after login the user will be redirect to "redirect_url".
The problem is that if the user is already logged in, it is stacked in profile page, and it is not redirect to "redirect_url" automatically.
Is there any way to add an automatic redirect directly in the URL if the user is already logged in?
Like a conditional URL...
Thank you!