Function to see where a URL would redirect to
-
I need a function to see where a URL would redirect to.
Something like this pseudo-code:
get_url_after_redirects('/some-old-slug') # Returns /the-new-slug
I’ve looked and didn’t find a function that does this, but I hope that utilizing the power of Redirection, this can be done. Any ideas how to do this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Function to see where a URL would redirect to’ is closed to new replies.