pass the product link to javascript which will set it to legend