[fix] route in website listing

This commit is contained in:
Anand Doshi 2015-07-16 12:46:02 +05:30
parent 2b29869879
commit b53f67f2de

View file

@ -1,7 +1,7 @@
{% set doc = frappe.get_doc(doc) %}
{% set subject = doc.get(meta.title_field or "name") %}
{% set route = ((is_web_form is defined and is_web_form and "{0}?name={1}".format(pathname, doc.name))
or (doc.get("get_route") and doc.get_route())
or (doc.get_route and doc.get_route())
or "{0}/{1}".format(pathname or doc.doctype, doc.name)) %}
<div class="web-list-item">
<a class="no-decoration" href="/{{ route }}" no-pjax>