http://www.ys720.com/index.php?route=product/product/review&product_id=64&page=2,
只要把这个http改为https就没有问题,知道原因就好解决了,我们找到评论控制器文件/catalog/controller/product/product.php,大概556行左右
$pagination->url = $this->url->link('product/product/review', 'product_id=' . $this->request->get['product_id'] . '&page={page}');
怎么改呢?ytkah在Stack Overflow上找了一圈,有个提示
这个不就是ssl吗?我们试着改造一下That's because the helper is designed to output URLs intended for use in HTML, where the & will be correctly parsed. Echo out your generated link and view the page source, or look at your shop links and you'll see what I mean.
If you dig deeper and look at the top of the account/account controller, you'll see this:
$this->redirect($this->url->link('account/login', '', 'SSL'));
$pagination->url = $this->url->link('product/product/review', 'product_id=' . $this->request->get['product_id'] . '&page={page}', 'SSL');