I think the {{Double Braces}} around Id is messing you up. When it is used, we attempt to inject all our field renderer code, which completely breaks your Link. To get your link code to work use {{{Triple Braces}}} - which just injects the raw data. I think the double braces around {{$Param.retUrl}} should be fine.