From 69db0caf33d28c400e259b5455173c70f44a2063 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 9 Jul 2009 19:30:48 +0200 Subject: =?UTF-8?q?rel=CAnonical=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: 2b720d0545643c18b49234e0a26e99b4 darcs-hash:20090709173048-7ad00-b5b5b4f2524533c3964152b595bef39449398610.gz --- inc/template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/template.php b/inc/template.php index 6e8c0d718..0c528c800 100644 --- a/inc/template.php +++ b/inc/template.php @@ -298,6 +298,7 @@ function tpl_metaheaders($alt=true){ }else{ $head['meta'][] = array( 'name'=>'robots', 'content'=>'noindex,nofollow'); } + $head['link'][] = array( 'rel'=>'canonical', 'href'=>wl($ID,'',true,'&') ); }else{ $head['meta'][] = array( 'name'=>'robots', 'content'=>'noindex,follow'); } -- cgit v1.2.3