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

Unified Diff: filters/stripindex.py

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 | « no previous file | templates/default.tmpl » ('j') | templates/default.tmpl » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filters/stripindex.py
===================================================================
deleted file mode 100644
--- a/filters/stripindex.py
+++ /dev/null
@@ -1,5 +0,0 @@
-def stripindex(path):
- parts = path.split("/")
- if parts[-1] == "index":
- parts.pop()
- return "/".join(parts)
« no previous file with comments | « no previous file | templates/default.tmpl » ('j') | templates/default.tmpl » ('J')

Powered by Google App Engine
This is Rietveld