I am having this problem of url stacking up. I used jquery ajax request on my localhost and the url became localhost/website/index.php/mycontroller/myfunction/mycontroller/mynewfunction instead of localhost/website/index.php/mycontroller/mynewfunction/para1/para2.
Does anyone know why? I have been trying to fix this problem for the whole day. Everywhere I checked that has a url or link appears to be right.