title: Getting URL including parameters passed in an URL as a parameter
body: <p>In my website I have a mechanism when your session has expired I save the current location and redirect you to the login page to log on, so the url is as follow</p>
  
  <p><code>localhost/mytest/admin/login-admin.html?current=localhost/mytest/admin/manage-customer.php?action=update&amp;id_annonceur=2</code></p>
  
  <p>Once you are logged in, I redirect the user to the url stored in the current parameter.
  The problem is when I use the following code </p>
  
  <pre><code>if(isset($_GET['current']))
      header('Location: http://'.$_GET['current']);
  else
      header('Location: ../admin/dashboard.php');
  </code></pre>
  
  <p>I get the URL without the parameters included in the URL</p>
  
  <pre><code>http://localhost/mytest/admin/gestion-annonceur.php?action
  </code></pre>
  
  <p>Is there a way to retrieve the complete url including parameters?</p>