Hi
frappe.pages[‘planning’].on_page_load
does not fire every time I click the desk icon.
can some one please help, I want to execute jquery code every time a person clicks the page icon to redirect them to a external site.
I think that this is your solution. Check if you have anything wrong in the browser console.
frappe.pages['planning'].on_page_load = function(wrapper) {
var page = frappe.ui.make_app_page({
parent: wrapper,
title: 'Planning',
single_column: true,
icon: 'octicon octicon-device-desktop'
});
window.location.replace("http://your_domain_name.com");
}
2 Likes