Sfoglia il codice sorgente

[minor] fix sitemap

version-14
Anand Doshi 9 anni fa
parent
commit
3cfc9a598a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      frappe/templates/pages/sitemap.py

+ 1
- 1
frappe/templates/pages/sitemap.py Vedi File

@@ -25,7 +25,7 @@ def get_context(context):

for route, data in get_generator_routes().iteritems():
links.append({
"loc": urllib.basejoin(host, urllib.quote(route.encode("utf-8"))),
"loc": urllib.basejoin(host, urllib.quote((route or "").encode("utf-8"))),
"lastmod": get_datetime(data.get("modified")).strftime("%Y-%m-%d")
})



Caricamento…
Annulla
Salva