[#8477] canonical tag included for add_project and pages inside the code tool
diff --git a/Allura/allura/templates/neighborhood_add_project.html b/Allura/allura/templates/neighborhood_add_project.html
index e6a70d4..436c07f 100644
--- a/Allura/allura/templates/neighborhood_add_project.html
+++ b/Allura/allura/templates/neighborhood_add_project.html
@@ -16,9 +16,14 @@
specific language governing permissions and limitations
under the License.
-#}
+{% from 'allura:templates/jinja_master/lib.html' import canonical_tag %}
{% set hide_left_bar = True %}
{% extends g.theme.master %}
+{% block head %}
+ {{ canonical_tag() }}
+{% endblock %}
+
{% block title %}{{neighborhood.name}} / Create a Project{% endblock %}
{% block header %}Create a Project{% endblock %}
diff --git a/Allura/allura/templates/repo/repo_master.html b/Allura/allura/templates/repo/repo_master.html
index e6f5b3a..791020d 100644
--- a/Allura/allura/templates/repo/repo_master.html
+++ b/Allura/allura/templates/repo/repo_master.html
@@ -16,8 +16,13 @@
specific language governing permissions and limitations
under the License.
-#}
+{% from 'allura:templates/jinja_master/lib.html' import canonical_tag %}
{% extends g.theme.master %}
+{% block head %}
+ {{ canonical_tag() }}
+{% endblock %}
+
{% if hasattr(c.app, 'repo') %}
{% set repo = c.app.repo %}
{% else %}
diff --git a/Allura/allura/tests/functional/test_neighborhood.py b/Allura/allura/tests/functional/test_neighborhood.py
index 90ab50c..482c097 100644
--- a/Allura/allura/tests/functional/test_neighborhood.py
+++ b/Allura/allura/tests/functional/test_neighborhood.py
@@ -597,6 +597,7 @@
neighborhood = M.Neighborhood.query.get(name='Projects')
neighborhood.features['private_projects'] = False
r = self.app.get('/p/add_project', extra_environ=dict(username='root'))
+ assert 'canonical' in r
assert 'private_project' not in r
r = self.app.post(