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