From d3a3b38f6c0b15afb6f28e016699565b5856fd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Mon, 2 Jul 2018 14:27:56 +0800 Subject: [PATCH] =?UTF-8?q?cht=E7=9A=84amp=E9=A1=B5=E9=9D=A2canonical?= =?UTF-8?q?=E5=8A=A0=E4=B8=8A=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/amp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/amp.php b/application/controllers/amp.php index e5be1ad7..740f9f9d 100644 --- a/application/controllers/amp.php +++ b/application/controllers/amp.php @@ -92,7 +92,7 @@ class Amp extends CI_Controller } //CH的页面没有canonical内容,在这里帮补上 - $textarea_htmlcode=str_replace('', $data['information']->ic_url, $textarea_htmlcode); + $textarea_htmlcode=str_replace('',$this->config->item('site_url'). $data['information']->ic_url, $textarea_htmlcode); $amp = $this->InfoMetas_model->get($ic_id, 'AMP'); if ($amp === false) {