How to redirect to frontpage from a controller 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-&gt;config('system.site')-&gt;get('page')['front'];
return new RedirectResponse($url);


This works but seems ugly, bloated and wrong. 

Update:

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.
Use the route &lt;front&gt; and when you are in a controller use the injected method redirect():

return $this-&gt;redirect('&lt;front&gt;');