feat: added get_profile_url function to get the profile url in templates
This takes care of generating the correct profile URL depending on the `profile_url_prefix` setting. Issue #192
This commit is contained in:
@@ -8,7 +8,7 @@ frappe.ready(function () {
|
||||
|
||||
frappe.web_form.after_save = () => {
|
||||
setTimeout(() => {
|
||||
window.location.href = `/user/${frappe.web_form.get_value(["username"])}`;
|
||||
window.location.href = `/profile_/${frappe.web_form.get_value(["username"])}`;
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user