if ($u = $this->generateUrl('_'.$specific.'_thanks'))
return $this->redirect($u);
else
return $this->redirect($this->generateUrl('_thanks'));
I wan't to redirect to the _specific_thanks
url when it exist. So How to check if a url exist?
When I did that, I had this error:
Route "_specific_thanks" does not exist.