Procházet zdrojové kódy

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] před 2 roky
committed by GitHub
rodič
revize
5d3e97a7b6
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      frappe/website/page_renderers/base_template_page.py

+ 3
- 1
frappe/website/page_renderers/base_template_page.py Zobrazit soubor

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


Načítá se…
Zrušit
Uložit