How to get the exact href value only without their domain?
<p>I'm having trouble in getting the exact value of href only. Here is the code:</p>

<pre><code>Link:
&lt;a href="monthly"&gt;&lt;/a&gt;

Script:
'a': function(target, process){
    if(process == "stripe"){
        document.location.href = "/accounts/stripe/payment"+target[0].href;
    }else{
        ......
    }
},
</code></pre>

<p>If I run this the output will be:</p>

<pre><code>http://localhost:8000/accounts/stripe/paymenthttp://localhost:8000/monthly/
</code></pre>

<p>Notice that the localhost is duplicating. How to get only the "monthly" in href without that localhost? I try target only but it's undefined. I try target[1] but it's not working.</p>
