Advertisement:
Anonymous Login
07-21-2018 11:40 AM

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003135SMF 2.0public2009-02-19 10:37
Reporterregularexpression 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
Summary0003135: Add Canonical Link Support - Google/MS/Yahoo Duplicate content tag
DescriptionAll the details posted here

http://www.simplemachines.org/community/index.php?topic=293307.0;topicseen

Attached my suggested addition in form of a diff

P.S I linked two bug reports, which for seo purposes will be fixed by using this tag. Neat!
TagsNo tags attached.
Attached Files
  • diff file icon edit.diff (941 bytes) 2009-02-15 16:17 -
    --- C:\DOCUME~1\Owner\LOCALS~1\Temp\index.template.php-revBASE.svn000.tmp.php	Sun Feb 15 21:16:08 2009
    +++ C:\apache2triad\htdocs\smf\Themes\default\index.template.php	Sun Feb 15 20:45:48 2009
    @@ -133,6 +133,14 @@
     		echo '
     	<link rel="alternate" type="application/rss+xml" title="', $context['forum_name_html_safe'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
     
    +	// Google, Yahoo, Microsoft - canonical tag to help with duplicate content
    +	if (!empty($context['current_topic']))
    +		echo '
    +	<link rel="canonical" href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '" />';
    +	elseif (!empty($context['current_board']))
    +		echo '
    +	<link rel="canonical" href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], '" />';
    +	
     	// If we're viewing a topic, these should be the previous and next topics, respectively.
     	if (!empty($context['current_topic']))
     		echo '
    
    diff file icon edit.diff (941 bytes) 2009-02-15 16:17 +

-Relationships
parent of 0003000acknowledged SMF 3.0 "Saguaro" 3000th bug report ;) - topic links without offset need noindexing or redirecting 
parent of 0002970acknowledged SMF 3.0 "Saguaro" SEF/Non-SEF links should redirect to enabled type or noindex 
Not all the children of this issue are yet resolved or closed.
+Relationships

-Notes

bugnote:0007154

Aaron (SMF Friend)

 + Present a canonical url for search engines to prevent duplicate content in their indices. (BoardIndex.php, Display.php, MessageIndex.php, Profile-View.php, index template) Revision 7939

bugnote:0007170

regularexpression (Viewer)

Can we please do it for aswell for
index.php?action=printpage;topic=1.0

bugnote:0007179

Aaron (SMF Friend)

+ Present a canonical url for search engines to prevent duplicate content in their indices. (BoardIndex.php, Display.php, MessageIndex.php, Profile-View.php, index template, Printpage template, Wireless template) Revision 7942
+Notes
MantisBT (Modified for SMF Intergration)[^] Copyright © 2000 - 2010 Mantis Group