0

This strikes me as somewhat similar to this question

I've got an AJAX request on my page, and the page location is /a/b/c. I want to send the request to d. Sending it to /d or to a/b/d I can do. However, I need to route it to a/b/c/d. How do I do that?

1 Answer 1

1

Use the current page url and append /d to it.

eg.

var urlToUse = location.href + "/d";
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.