diff --git a/frappe/website/context.py b/frappe/website/context.py index 5695f90330..993bf54db7 100644 --- a/frappe/website/context.py +++ b/frappe/website/context.py @@ -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 {})