I created a custom module, It generate a custom Form in a page. When I submit my form, I create a new node. So, I am redirect to the form page but I would like be redirect to the new node page.
I add this line at the end of my submitForm function :
But when I submit my form from the website, I get the empty-white-screen-of-the-death. My apache log :
... Uncaught PHP Exception Symfony\\Component\\Routing\\Exception\\RouteNotFoundException: "Route "node/153" does not exist. ...
And then, when I go manually to the node/153 page, there isn't any problem. The page work well.
My question : where is my mistake ? How can I set the redirection after create the new node ? Is it possible from the submitForm function ?