fix: remove page renderer for profile page

This commit is contained in:
Jannat Patel
2021-12-06 10:51:50 +05:30
parent 740c0d10ca
commit 7c5021132d
4 changed files with 12 additions and 8 deletions

View File

@@ -147,4 +147,8 @@ class CustomUser(User):
}
def get_profile_url(self):
return get_profile_url()
return get_profile_url_prefix() + self.username
def get_profile_url_prefix():
hooks = frappe.get_hooks("profile_url_prefix") or ["/users/"]
return hooks[-1]