on a page i have a link
<a href="/_l/R/Contact.aspx" id="ctl00_SPLinkbutton1"><span class="ms-splinkbutton-text">Contact</span></a>
I would like to get the current url of the page i'm on and add it to the href.
So if I am on http://mysite.com when I click the link contact above I would go to the page http://mysite.com/_l/R/Contact.aspx?source=http://mysite.com.
Any ideas on how to achieve that in jQuery or JS?