Issue #2782479 by chaitanya17, elachlan: Replace deprecated usage of \Drupal::url with Url::fromRoute