Sfoglia il codice sorgente

Merge pull request #1940 from nabinhait/develop

[fix] URL Prefix for docs
version-14
Rushabh Mehta 9 anni fa
committed by GitHub
parent
commit
642cab5924
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      frappe/website/context.py

+ 3
- 0
frappe/website/context.py Vedi File

@@ -41,6 +41,9 @@ def build_context(context):
if not "url_prefix" in context:
context.url_prefix = ""

if context.url_prefix and context.url_prefix[-1]!='/':
context.url_prefix += '/'

context.update(get_website_settings())
context.update(frappe.local.conf.get("website_context") or {})



Caricamento…
Annulla
Salva