Summary:
return url using wrong page ID
Detailed Description:
If you don't use the detailpage= parameter in your tag, then open up an item's
detail page, the {$return_url} and {$return_link} appear to be using the page ID
from the summary page set in the instance options instead of the detail page
option.
If you use the detailpage= parameter in the tag then it works properly.