aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-16 11:32:01 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-05-16 11:32:01 +0200
commit613f4f752553ba3b2a27bbbd81ee9431be5dfa39 (patch)
tree011ebf394aa60bfad06386976112c6e6fe62fd80
parenta496015b985105dff1daed26ad172a3601fbbbd9 (diff)
downloadforums-613f4f752553ba3b2a27bbbd81ee9431be5dfa39.tar
forums-613f4f752553ba3b2a27bbbd81ee9431be5dfa39.tar.gz
forums-613f4f752553ba3b2a27bbbd81ee9431be5dfa39.tar.bz2
forums-613f4f752553ba3b2a27bbbd81ee9431be5dfa39.tar.xz
forums-613f4f752553ba3b2a27bbbd81ee9431be5dfa39.zip
[ticket/12555] Allow to set canonical URLs to avoid duplicate content
PHPBB3-12555
-rw-r--r--phpBB/styles/prosilver/template/overall_header.html4
-rw-r--r--phpBB/styles/subsilver2/template/overall_header.html4
2 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html
index 353ba9139a..8c63ce9cea 100644
--- a/phpBB/styles/prosilver/template/overall_header.html
+++ b/phpBB/styles/prosilver/template/overall_header.html
@@ -18,6 +18,10 @@
<!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&amp;t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->
+<!-- IF U_CANONICAL -->
+ <link rel="canonical" href="{U_CANONICAL}" />
+<!-- ENDIF -->
+
<!--
phpBB style name: prosilver
Based on style: prosilver (this is the default phpBB3 style)
diff --git a/phpBB/styles/subsilver2/template/overall_header.html b/phpBB/styles/subsilver2/template/overall_header.html
index 0d3e727ecd..b4a2fa5b59 100644
--- a/phpBB/styles/subsilver2/template/overall_header.html
+++ b/phpBB/styles/subsilver2/template/overall_header.html
@@ -17,6 +17,10 @@
<!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&amp;t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->
+<!-- IF U_CANONICAL -->
+ <link rel="canonical" href="{U_CANONICAL}" />
+<!-- ENDIF -->
+
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
<link rel="stylesheet" href="{T_STYLESHEET_LANG_LINK}" type="text/css" />