fix: after login if redirect is used getting blank screen
This commit is contained in:
parent
28375e8e6e
commit
abc5b51e57
1 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ class NotPermittedPage(TemplatePage):
|
|||
|
||||
def render(self):
|
||||
action = f"/login?redirect-to={frappe.request.path}"
|
||||
if frappe.request.path.startswith("/app"):
|
||||
action = "/login"
|
||||
frappe.local.message_title = _("Not Permitted")
|
||||
frappe.local.response["context"] = dict(
|
||||
indicator_color="red", primary_action=action, primary_label=_("Login"), fullpage=True
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue