评论页的URL - Magento 1.9
问题描述:
当我点击Product Review页面时,我的网址得到改变。 例如 产品网址:https://beyondgallery.com/dark-blue-kurta.html 评论网址:https://beyondgallery.com/review/product/list/id/5047/category/274/#review-form评论页的URL - Magento 1.9
需要得到URL一样:深蓝色 - 库尔塔-reivew
答
一个可能的解决方案是通过创建和使用自定义路由器。
参见本参考的博客在Magento创建自定义路由器:http://inchoo.net/magento/custom-router-in-magento/
在match
功能,您可以添加的情况一样,如果发现-review
在请求路径信息,然后添加你的逻辑。
而且我们可以通过改写getReviewsUrl
函数Mage_Review_Block_Helper
助手来改变评论列表链接到https://beyondgallery.com/dark-blue-kurta-reivew。
希望它有帮助!