title: Get current URL outside FancyBox modal
body: <p>I'd like to get the current URL of the page I'm on and not the one that's being loaded within a FancyBox modal with PHP.</p>
  
  <p><code>$_SERVER['REQUEST_URI']</code> gives me the URL of the page that's being loaded within the FancyBox modal.</p>
  
  <p>Example:</p>
  
  <p>While I'm a <code>a.php</code>, I'd like to click a link that opens a modal window with <code>b.php</code> loaded and to have a PHP code within <code>b.php</code> to say that I'm from <code>a.php</code>, not from <code>b.php</code> (which now happens).</p>