K
K
kr_ilya2020-07-19 13:18:40
JavaScript
kr_ilya, 2020-07-19 13:18:40

How to find out the final link after a redirect?

I need to find out which page the site is redirecting to. In addition, there can be not one redirect, but several in a row. ( a>b>c , a - start link, c - end link).

Maybe there are some libraries on the github that perform this function and provide for all the subtleties? (I didn't find it)
So that I don't have to reinvent the wheel.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question