Browse Source

Merge pull request #1940 from nabinhait/develop

[fix] URL Prefix for docs
version-14
Rushabh Mehta 9 years ago
committed by GitHub
parent
commit
642cab5924
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      frappe/website/context.py

+ 3
- 0
frappe/website/context.py View 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 {})



Loading…
Cancel
Save