πΊπΈUnited States steve.elkins
Updated patch to add support for external redirects borrowing similar changes from #3133681: No information for external redirects β .
Before:
Path Examples
/router/translate-path?path=/external-redirect
/router/translate-path?path=/es/external-redirect
{
"message": "Unable to resolve path /external-redirect.",
"details": "None of the available methods were able to find a match for this path."
}
After:
Path Example: /router/translate-path?path=/external-redirect
{
"resolved": "https://google.com",
"redirect": [
{
"from": "/external-redirect",
"to": "https://google.com",
"status": "301"
}
]
}
Path Example: /router/translate-path?path=/es/external-redirect
{
"resolved": "https://google.com",
"redirect": [
{
"from": "/es/external-redirect",
"to": "https://google.com",
"status": "301"
}
]
}
Attached a modified version of the patch and the interdiff.