cht的amp页面canonical加上域名

hotfix/远程访问多媒体中心
尹诚诚 7 years ago
parent 445b30b33b
commit d3a3b38f6c

@ -92,7 +92,7 @@ class Amp extends CI_Controller
}
//CH的页面没有canonical内容在这里帮补上
$textarea_htmlcode=str_replace('<!--@CANONICAL@-->', $data['information']->ic_url, $textarea_htmlcode);
$textarea_htmlcode=str_replace('<!--@CANONICAL@-->',$this->config->item('site_url'). $data['information']->ic_url, $textarea_htmlcode);
$amp = $this->InfoMetas_model->get($ic_id, 'AMP');
if ($amp === false) {

Loading…
Cancel
Save