fix: bug preventing proper detection of pages, fixes #10613
This commit is contained in:
parent
344f7878ef
commit
5fcdbc29bf
1 changed files with 2 additions and 2 deletions
|
|
@ -210,7 +210,7 @@ def get_pages_from_path(start, app, app_path):
|
|||
if not '.' in fname:
|
||||
continue
|
||||
page_name, extn = fname.rsplit(".", 1)
|
||||
if extn in ('js', 'css') and os.path.exists(os.path.join(basepath, fname + '.html')):
|
||||
if extn in ('js', 'css') and os.path.exists(os.path.join(basepath, page_name + '.html')):
|
||||
# js, css is linked to html, skip
|
||||
continue
|
||||
|
||||
|
|
@ -441,4 +441,4 @@ def get_doctypes_with_web_view():
|
|||
return frappe.cache().get_value('doctypes_with_web_view', _get)
|
||||
|
||||
def get_start_folders():
|
||||
return frappe.local.flags.web_pages_folders or ('www', 'templates/pages')
|
||||
return frappe.local.flags.web_pages_folders or ('www', 'templates/pages')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue