title: Ajax URL not correct with subfolder implemented
body: <p>I implemented my project in a subfolder. I am putting it in /var/www/html/subfolder</p>
  
  <p>The link to my subfolder project looks like this</p>
  
  <blockquote>
    <p><a href="https://mytestingsite.com/subfolder" rel="nofollow noreferrer">https://mytestingsite.com/subfolder</a></p>
  </blockquote>
  
  <p>Ajax</p>
  
  <pre><code>$.ajax({
    url: "/subfolder/testroute",
    data: data,  
    dataType: json
  });
  </code></pre>
  
  <p>When i call an ajax, my url will be</p>
  
  <blockquote>
    <p>url : "/subfolder/testroute"</p>
  </blockquote>
  
  <p>But the url return <a href="https://mytestingsite.com/testroute" rel="nofollow noreferrer">https://mytestingsite.com/testroute</a></p>
  
  <p>I exptected the url return as <a href="https://mytestingsite.com/subfolder/testroute" rel="nofollow noreferrer">https://mytestingsite.com/subfolder/testroute</a></p>
  
  <p>I found that if i put my url as</p>
  
  <blockquote>
    <p>url : "/subfolder/subfolder/testroute"</p>
  </blockquote>
  
  <p>Then the url only will return <a href="https://mytestingsite.com/subfolder/testroute" rel="nofollow noreferrer">https://mytestingsite.com/subfolder/testroute</a> </p>
  
  <p>Is anything wrong with my route?</p>