This PR changes new_url handling in RedirectType to ensure that the returned value is always an absolute URL.
In resolve_new_url, instead of relying entirely on the link property of the Redirect model, a check was added to ensure the URL being passed is absolute when the redirect does not point to a specific Page object. Relative URLs will be turned into absolute URLs.
resolves #384
This PR changes
new_url
handling inRedirectType
to ensure that the returned value is always an absolute URL.In
resolve_new_url
, instead of relying entirely on thelink
property of theRedirect
model, a check was added to ensure the URL being passed is absolute when the redirect does not point to a specificPage
object. Relative URLs will be turned into absolute URLs.