/** * Retrieve Product View URL * * @param \Magento\Catalog\Model\Product $product * @param array $additional * @return string */ public function getProductUrl($product, $additional = []) { $additional['_scope_to_url'] = true; return parent::getProductUrl($product, $additional); }
/** * Retrieve Product View URL * * @param \Magento\Catalog\Model\Product $product * @param array $additional * @return string */ public function getProductUrl($product, $additional = array()) { $additional['_rss'] = true; return parent::getProductUrl($product, $additional); }