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

Unified Diff: tests/test_site/pages/get_page_url.tmpl

Issue 29495555: Fixes 5343 - add global function: get_canonical_url (Closed)
Patch Set: Implement get_canonical_url (according to updated ticket) Created July 28, 2017, 10:07 a.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 | « tests/test_page_outputs.py ('k') | tests/test_site/settings.ini » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_site/pages/get_page_url.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/tests/test_site/pages/get_page_url.tmpl
@@ -0,0 +1,7 @@
+template = empty
+
+global_canonical_url = {{ get_canonical_url('global') }}
+
+# 'filter' is default page name for the test website, so we check that the
+# link would not include the page name itself.
+filter_canonical_url = {{ get_canonical_url('filter') }}
« no previous file with comments | « tests/test_page_outputs.py ('k') | tests/test_site/settings.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld