public function getRedirect(RouteException $e) {
    $redirect = $this->getConfig('redirect', $e);
    if (empty($redirect)) {
      $redirect = '<current>';
    }
    return Url::fromUri("internal:/{$redirect}")->toString();
  }