modify the product's link getting function

Now the link getting function uses the productid to except the repeated
link.