Is it wrong to declare urls in ajax in this way?
$.ajax
({
url: '/SFI_IncentivoDet/buscarIncentivosSinDetalles',
type: 'post'
});
I am working with the functions in separate files, in some cases I have to put ../ before the controller (apparently if I call the function from a different view to the destination controller)
The problem is that when I pass the application to the server or to another computer I have to modify the url parameter in some cases. Thank you very much!