javascript window.location gives me a wrong url path when checking firebug
<p>I have a sample url website: <a href="http://mysite.com/" rel="nofollow">http://mysite.com/</a></p>

<pre><code> var host = window.location.protocol+"//"+window.location.hostname;

$.ajax({
   type:"POST",
   data: params,
   url : host+'/forms/get_data.php',
   success:function(data){
       ...othercodeblahblah
   }
});
</code></pre>

<p>Why is it that when I try to check my firebug it makes the URL weird.</p>

<p>This is the sample output of firebug:</p>

<pre><code>http://mysite.com/mysite.com/forms/get_data.php
</code></pre>

<p>With this url it now gives me:</p>

<pre><code>"NetworkError: 404 Not Found -  http://mysite.com/mysite.com/forms/get_data.php"
</code></pre>

<p>Shouldn't it output like <a href="http://mysite.com/forms/get_data.php" rel="nofollow">http://mysite.com/forms/get_data.php</a> ?
Why is it giving me a wrong url path?</p>

<p>Your help would be greatly appreciated and rewarded!</p>

<p>Thank!</p>
