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) {