added url function for product / category

added url function for product / category