I want to get the redirected URL of a source. Example, this URL:
https://www.novelupdates.com/extnu/2633428/
Redirects to this URL:
http://www.tapread.com/book/index?bookId=91&chapterId=10725
So I want to get the redirected URL (http://www.tapread.com/book/index?bookId=91&chapterId=10725
one).
How can I do this via jQuery so the client (not server) gets the redirected URL?
EDIT:
So I need a function:
get_redirect_url('https://www.novelupdates.com/extnu/2633428/');
Which would return:
http://www.tapread.com/book/index?bookId=91&chapterId=10725