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: Removed the filter went with jinja2 Created Dec. 18, 2015, 5:43 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 | « filters/stripindex.py ('k') | 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,7 @@
<script src="/js/jquery.js"></script>
<script src="/js/scripts.js"></script>
- <link rel="canonical" href="https://eyeo.com/{{page|stripindex}}">
+ <link rel="canonical" href="https://eyeo.com/{{ page[:-5] if page.endswith('index') else page }}">
Sebastian Noack 2015/12/18 18:01:37 Argh, sorry. I just realized that this will break
{% block head %}
{{head|safe}}
« no previous file with comments | « filters/stripindex.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld