Function: fetchRedirect()
fetchRedirect(
pathname,sourceUrl):Promise<RedirectData>
Defined in: packages/core/src/utils/fetchRedirect.ts:56
Fetches a redirect from the WordPress origin by making a HEAD request and checking the response
Parameters
pathname
string
The path to the page to fetch the redirect for
sourceUrl
string
The source url
Returns
Promise<RedirectData>
The redirect data