I have a scenario where the user clicks on a link received to an email which requires a sign in. if the link is http://test.url.com/product/2
, the user should sign in and the page should redirect to the same path after authentication.
I tried to tackle this via the use of print_r($request->headers->get('referer'));
which posted a question here : Redirect to the url of the clicked (referred) link . which was unsuccessful as it returned null.
My next aim is to pass parameters to the sign in page depending on the url.
eg: if the user clicks http://test.url.com/product/2
, the sign in url would look like http://test.url.com/signin/product/2
or http://test.url.com/signing?=pruduct?2
or something like that where the system would redirect the user to the desired page.
Any document/ example on passing parameters from the config level is greatly appreciated as I am very new to this domain. thanks :)