I am wondering if there is a way already built into modx that could add the current url path as a parameter when I link to a different resource. I have tried several different things and show an example here of trying to add a snippet which had javascript in it.
<a href="[[~101?url=`[[$currentUrl]]`]]">Go Here</a>
Using just the [[*id]] worked with putting the id in there but doesn’t help with passing the full alias path. But seeing that it did pass the id made me think that there was a way already in MODx to accomplish this url passing.
<a href="[[~101?url=`[[*id]]`]]">Go Here</a>