Merge pull request #22555 from cogk/fix-notpermittedpage-redirect-if-startwith-app
This commit is contained in:
commit
3a5f8ecaa5
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ class NotPermittedPage(TemplatePage):
|
|||
|
||||
def render(self):
|
||||
action = f"/login?redirect-to={frappe.request.path}"
|
||||
if frappe.request.path.startswith("/app"):
|
||||
if frappe.request.path.startswith("/app/") or frappe.request.path == "/app":
|
||||
action = "/login"
|
||||
frappe.local.message_title = _("Not Permitted")
|
||||
frappe.local.response["context"] = dict(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue