I use $.get to load the content of an external document into the current website.

However, I need the final URL of this external document. In the case, where the original URL gets redirected (302) to a different URL, I need the new URL.

Can I get the final URL from the loaded document (after 302 redirect) using the jQuery $.get method?

Read more here: How to detect a server redirect with $.get()?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: