Ver código fonte

fix: Show error page even when routing fails (#18437) (#18438)

(cherry picked from commit cc72dc47ab)

Co-authored-by: Ankush Menat <ankush@frappe.io>
version-14
mergify[bot] 2 anos atrás
committed by GitHub
pai
commit
5d3e97a7b6
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 3 adições e 1 exclusões
  1. +3
    -1
      frappe/website/page_renderers/base_template_page.py

+ 3
- 1
frappe/website/page_renderers/base_template_page.py Ver arquivo

@@ -64,7 +64,9 @@ class BaseTemplatePage(BaseRenderer):
self.context.url_prefix += "/"

self.context.path = self.path
self.context.pathname = frappe.local.path if hasattr(frappe, "local") else self.path
self.context.pathname = (
getattr(frappe.local, "path", None) if hasattr(frappe, "local") else self.path
)

def update_website_context(self):
# apply context from hooks


Carregando…
Cancelar
Salvar