[fix] route in website listing
This commit is contained in:
parent
2b29869879
commit
b53f67f2de
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue