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

Unified Diff: templates/default.tmpl

Issue 29332890: Issue 3435 - fix for top level index page (Closed)
Patch Set: Created Dec. 18, 2015, 6:14 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,7 @@
<script src="/js/jquery.js"></script>
<script src="/js/scripts.js"></script>
- <link rel="canonical" href="https://eyeo.com/{{ page[:-5] if page.endswith('index') else page }}">
+ <link rel="canonical" href="https://eyeo.com/{{ page[:-5] if page.split('/')[-1] == 'index' else page }}">
{% 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