Redirection of non loggedin user loses parameter

Hi,
In our plugin users can share a link that contains the id of set of parameters. When a non loggedin user clicks to the link http://localhost:8080/jira/plugins/servlet/demoplugin?parameterSet=2f5886ff-a25b-4d8e-8b1e-d2a7a3f8585c then jira redirects user to the login page. But after login process the parameter is gone and user is redirected to main page of plugin.
Is it possible to keep that parameter after login process?

Thank you