I am trying to make an ajax call to reload the information on the category edit page.
I know the url I am trying to create is
Why is it returning index instead of edit? How do I get the correct url for ajax calls? Or do I need to manually specify the full url, in which case what is the best way to get the form key?