Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: templates/default.tmpl

Issue 29332884: Issue 3435 - add missing trailing slash to the canonical url (Closed)
Patch Set: Created Dec. 18, 2015, 5:33 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/default.tmpl
===================================================================
--- a/templates/default.tmpl
+++ b/templates/default.tmpl
@@ -18,7 +18,11 @@
<script src="/js/jquery.js"></script>
<script src="/js/scripts.js"></script>
- <link rel="canonical" href="https://eyeo.com/{{page|stripindex}}">
+ {% if page == "index" or page == "" %}
+ <link rel="canonical" href="https://eyeo.com">
+ {% else %}
+ <link rel="canonical" href="https://eyeo.com/{{page|stripindex}}/">
Sebastian Noack 2015/12/18 17:42:46 This will add a redundant slash if the we didn't s
+ {% endif %}
{% block head %}
{{head|safe}}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld