瀏覽代碼

Merge pull request #12424 from CaseSolvedUK/sitemapfix-v13

fix: Bug preventing proper detection of pages
version-14
mergify[bot] 4 年之前
committed by GitHub
父節點
當前提交
e9aa93fe98
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 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…
取消
儲存