diff --git a/frappe/desk/page/activity/activity.js b/frappe/desk/page/activity/activity.js index 790aae5f90..7e4d03e460 100644 --- a/frappe/desk/page/activity/activity.js +++ b/frappe/desk/page/activity/activity.js @@ -29,6 +29,12 @@ frappe.pages['activity'].on_page_load = function(wrapper) { doctype = $(this).attr("data-doctype"), docname = $(this).attr("data-docname"); + var [link_doctype, link_name, doctype, docname] = + [link_doctype, link_name, doctype, docname].map(decodeURIComponent); + + link_doctype = link_doctype && link_doctype !== 'null' ? link_doctype : null; + link_name = link_name && link_name !== 'null' ? link_name : null; + if (doctype && docname) { if (link_doctype && link_name) { frappe.route_options = { diff --git a/frappe/desk/page/activity/activity_row.html b/frappe/desk/page/activity/activity_row.html index 2eb1a91a91..4a15d3d9cd 100644 --- a/frappe/desk/page/activity/activity_row.html +++ b/frappe/desk/page/activity/activity_row.html @@ -2,10 +2,10 @@
{%= date_sep || "" %}
{{ avatar }}