title: Need to get the current page URL while using ajax method in php
body: <p>I need to get the current page URL.</p>
  
  <p>Actually, I have used pop up box while click the link in current page in Codeigniter framework
  Here, I have displayed the some content in pop up box using ajax response method.
  In that content, I have coded as </p>
  
  <blockquote>
    <p>$this->uri->segment(2)</p>
  </blockquote>
  
  <p>.
  Here I got only url which is given in ajax method, but I need to get the URL of the page which I have hold the pop up box.</p>