In the past I could set up redirects with
drupal_goto using a simple path (i.e., node/1).
Is this not possible at all in Drupal 8? Everything I've seen relies on a route name but that requires either generating a page in a module or keeping a static note of a node id, which seems backwards.
If I use Url::fromUri(), I can't seem to use getRouteName() since it interprets that as an external URL (even though the domain is the Drupal install).
What is the best way to get the route name of an internal path?