If a URL is redirected, query the new location via curlGetHeaders(),
otherwise return the original URL.
url_destination(x, force = FALSE)The final destination(s). If the URL returns a status code greater than or equal to 400, it will throw an error.
u = "https://tinytex.yihui.org" # redirected to https://yihui.org/tinytex/
if (url_accessible(u)) url_destination(u)
#> [1] "https://yihui.org/tinytex/"