Right now I'm doing this ugly thing to get the url of the my set frontpage (skipping validations and making sure it exists since I'm not sure if I'll even use this approach)
$url = $this->config('system.site')->get('page')['front']; return new RedirectResponse($url);
This works but seems ugly, bloated and wrong.
As pointed out in the comments, this may be a matter of personal taste, therefore the question would be deemed subjective and it can be closed. It surely isn't a duplicate, I'm not asking how to redirect in general, it's a specific redirection, perhaps I could've worded it differently.