The URL to be processed and potentially replaced.
An array of tuples where each tuple contains:
from
: A string or regular expression to match against the start of the URL.to
: A string to replace the matched portion of the URL.The modified URL if a match is found, or the original URL if no match is found.
Replaces the beginning of a given URL with a corresponding replacement string based on a set of path overrides. The function matches the longest prefix or regular expression match from the provided overrides.