Parcourir la source

Merge pull request #12424 from CaseSolvedUK/sitemapfix-v13

fix: Bug preventing proper detection of pages
version-14
mergify[bot] il y a 4 ans
committed by GitHub
Parent
révision
e9aa93fe98
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      frappe/website/router.py

+ 1
- 1
frappe/website/router.py Voir le fichier

@@ -208,7 +208,7 @@ def get_pages_from_path(start, app, app_path):
if not '.' in fname: if not '.' in fname:
continue continue
page_name, extn = fname.rsplit(".", 1) 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 # js, css is linked to html, skip
continue continue




Chargement…
Annuler
Enregistrer