Javascript links not working in production mode

Hello guys,

I have some stupid kind of problem with me. Hope you guys can help me to
get rid of it. The problem is that in javascript i am making ajax
requests manually just by giving links. So when that function get called
in javascipt ajax request will generate and perform the function. I
given the links as:-
“resumes/action?parameters=whatever”. It is all working in development
phase. So, i deployed it. But now these links only are not working i
mean these links require me to prepend with application name just like
as “application_name/resumes/action?parameters=whatever”.
So after googling also i did’nt find any clearer solution to this.
Please light me some direction.