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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | templates/default.tmpl » ('j') | templates/default.tmpl » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 def stripindex(path):
2 parts = path.split("/")
3 if parts[-1] == "index":
4 parts.pop()
5 return "/".join(parts)
OLDNEW
« no previous file with comments | « no previous file | templates/default.tmpl » ('j') | templates/default.tmpl » ('J')

Powered by Google App Engine
This is Rietveld