frappe.pages["wes-ai"].on_page_load = function(wrapper) {
    wrapper.innerHTML = '<div style="display:flex;align-items:center;justify-content:center;height:60vh;font-family:sans-serif;"><div style="text-align:center;"><i class="fa fa-spinner fa-spin" style="font-size:24px;color:#5b3a8c;"></i><p style="margin-top:12px;color:#555;">Redirecting to Wes AI Assistant...</p></div></div>';
    setTimeout(function() { window.location.href = "https://wes.advante.ch"; }, 500);
};
