Explorar el Código

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] hace 2 años
committed by GitHub
padre
commit
5d3e97a7b6
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      frappe/website/page_renderers/base_template_page.py

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

@@ -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


Cargando…
Cancelar
Guardar