Thanks for catching that Nicolas, I moved the url to the templates and call it with jQuery