本文最后更新于 151 天前,其中的信息可能已经有所发展或是发生改变。
Dedecms获取当前url,用于
<link rel="canonical" href=""/>
1、网站首页的链接
{dede:global.cfg_basehost/}
2、栏目页的链接
<link rel="canonical" href="{dede:global.cfg_basehost/}{dede:type row=1}[field:typelink /]{/dede:type}"/>
3、内容页的链接
<link rel="canonical" href="{dede:global name='cfg_basehost'/}{dede:field name='arcurl'/}" />