fix(routes): desk to app

This commit is contained in:
Rushabh Mehta
2020-12-18 13:17:58 +05:30
parent 70cfc4df15
commit 2cd41bca06
14 changed files with 19 additions and 24 deletions

View File

@@ -189,10 +189,7 @@ frappe.ui.form.on("Issue", {
subject: dialog.fields_dict.subject.value,
communication_id: e.currentTarget.closest(".timeline-item").getAttribute("data-name")
}, (r) => {
let url = window.location.href
let arr = url.split("/");
let result = arr[0] + "//" + arr[2]
frappe.msgprint(`New issue created: <a href="${result}//desk/Form/Issue/${r.message}">${r.message}</a>`)
frappe.msgprint(`New issue created: <a href="/app/issue/${r.message}">${r.message}</a>`)
frm.reload_doc();
dialog.hide();
});