canonical.tpl 691 Bytes
Newer Older
1
{* $Id$ *}
marclaporte's avatar
marclaporte committed
2
{if $prefs.feature_canonical_url eq 'y'}
3
	{if $mid eq 'tiki-show_page.tpl' or 'tiki-index_p.tpl'}
4 5
		<link rel="canonical" href="{$base_url}{$page|sefurl}" />
	{elseif $mid eq 'tiki-view_tracker_item.tpl'}
6
		<link rel="canonical" href="{$base_url}{$itemId|sefurl:trackeritem}" />
7 8 9 10
	{elseif $mid eq 'tiki-view_forum_thread.tpl'}
		<link rel="canonical" href="{$base_url}tiki-view_forum_thread.php?comments_parentId={$comments_parentId}" />
	{elseif $mid eq 'tiki-view_blog_post.tpl'}
		<link rel="canonical" href="{$base_url}{$postId|sefurl:blogpost}" />
11 12
	{elseif $mid eq 'tiki-read_article.tpl'}
		<link rel="canonical" href="{$base_url}{$articleId|sefurl:article}" />
13
	{/if}
marclaporte's avatar
marclaporte committed
14
{/if}