I am looking to add `"&location=/xyz/123"` to the end of every hyperlink on a page.

How do I go about doing this? I am somewhat new to jQuery 

I am thinking something like this but I am not 100%

```
<script type="text/javascript">
jQuery(document).ready(function(){
   jQuery('a').attr('href').append("&location=/xyz/123");
});
</script>

```

Thank you.