Try ERPNext Buy Support Partners Foundation

Frappe.set_route is not working from webpage(portal page js)

Uncaught TypeError: frappe.set_route is not a function
at HTMLAnchorElement.$value.click (project-information:1324)
at HTMLAnchorElement.dispatch (jquery.min.js:3)
at HTMLAnchorElement.r.handle (jquery.min.js:3)

getting this error

window.location.href

is working,but speed is very slow

How Can we include js function in portal

Please help