elm.web.utilities.get_redirected_url

async get_redirected_url(url, **kwargs)[source]

Get the final URL after following redirects.

Parameters:
  • url (str) – URL to check for redirects.

  • **kwargs – Keyword-value arguments to pass to the httpx.AsyncClient client.

Returns:

str – The final URL after following redirects, or the original URL if no redirects are found or an error occurs.