fixed the product attachment urls when use n/%product_cat% as base url, closes #5159