Not sure if this helps but if you want your URL like this
Your URL
<a href="mypage.html?myvar=myvalue">text of link</a>
I think you can do something like
<a href="[[~5]]?[[$myvariable]]">text of link</a>
where 5 is the ID of the target resource
[[$mavariable]] is a chunk with just
CHUNK MYVARIABLE :
Not sure if it’s your goal, but hope this helps
Cheers