Repeated panel link using resultset of a query

I have a basic query in a repeated panel like
SELECT A, B, shortcode
FROM “MyTable”
WHERE myCondition = true

Now i would like to add a panel link to the URL "https://destination.com/x/{shortcode)" I can't find how to do that. I also tried {__cell_2}. The final URL is just escaped, the variable not replaced