Substitutes the published origin while preserving the request path and query. Without a published origin, returns the original URL byte for byte.
The current request context
The public absolute request URL
When a URL requiring substitution is invalid
const request = new Request(publicRequestUrl(ctx)); Copy
const request = new Request(publicRequestUrl(ctx));
0.10.0
Substitutes the published origin while preserving the request path and query. Without a published origin, returns the original URL byte for byte.