Преглед изворни кода

Merge pull request #12424 from CaseSolvedUK/sitemapfix-v13

fix: Bug preventing proper detection of pages
version-14
mergify[bot] пре 4 година
committed by GitHub
родитељ
комит
e9aa93fe98
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      frappe/website/router.py

+ 1
- 1
frappe/website/router.py Прегледај датотеку

@@ -208,7 +208,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



Loading…
Откажи
Сачувај