Understanding how .ajax URL work

Understanding how .ajax URL work

Greetings,

I am trying to use the regular .ajax functionality and it works great on most browsers but I noticed a phenomena:

When I make an ajax request outside the "root" / index file it adds "/" to the end of the request which results in a 404 request...

How can I eliminate this behavior and how does url really work in the ajax request ?

Thank you for your help,

Alexander