using self.location and url page values in jquery
<p>I currently have the following:</p>

<pre><code>$ul.append('&lt;li&gt;' + 
'&lt;a href="setlocale.aspx?returnURL=default.aspx&amp;localesetting=' + 
this.slice(0) + '"&gt;' + this.slice(3) + '&lt;/a&gt;');
</code></pre>

<p>Lets say my URL ends with: <code>/c-577-camping.aspx</code></p>

<p>How do I use this value in my jquery? it should change <code>default.aspx</code> to <code>c-577-camping.aspx</code> and if the website is <code>www.site.com/c-517-cookers.aspx</code> then it should append:</p>

<p><code>http://www.site.com/c-517-cookers.aspx?setlocale.aspx?returnURL=c-517-cookers.aspx&amp;localesetting=fr-FR</code></p>
