redirect to subdomain or different domain url on submitting form
- Drupal 8 redirect form to subdomain
- Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it. subdomain
This person already knew that Drupal would refuse to redirect to URLs, not because they were merely absolute, but only if they were absolute and not in the Trusted Host Patterns.
And that was really all the information i needed, fortunately for me, although unfortunately for them they only had to state all that because something wasn’t working somehow for them: https://stackoverflow.com/questions/49191995/drupal-8-redirects-to-external-urls-are-not-allowed-by-default
On a form you can set where you go next with setRedirectUrl (or if you have the route, setRedirect).