Przeglądaj źródła

Merge pull request #12424 from CaseSolvedUK/sitemapfix-v13

fix: Bug preventing proper detection of pages
version-14
mergify[bot] 4 lat temu
committed by GitHub
rodzic
commit
e9aa93fe98
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      frappe/website/router.py

+ 1
- 1
frappe/website/router.py Wyświetl plik

@@ -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



Ładowanie…
Anuluj
Zapisz