fixed the product attachment urls when use n/%product_cat% as base url, closes #5159
Merge pull request #5603 from claudiosmweb/5159-fix-product-attachment-url

Fix the product attachment urls when use n/%product_cat% as base url