Tag: routing
-
How to view Symfony 5+ FosJsRoutingBundle routes
I can never remember this command. However, now that I am creating more AJAX and exposing endpoints I need this command more often. This command is found in the docs too. But I can never remember where, so I will write about it here. The command to view how FosJsRoutingBundle views your routes. php bin/console […]
-
How to fix Symfony FosJsRoutingBundle outputs routes in browser
Yeah I got this problem once too. The routing bundle outputs the routes in your browser on a plain white background, giving the user no options to navigate etc. after they register or login. So how do you fix this? Read the last step of this article I wrote How to get URL Routes in […]
-
How to get URL Routes in your Javascript in Symfony 5+
This article has been recently updated to fix errors. Do not miss the last step. If you are using an EventSubscriber to store the last page the user visited or else Symfony redirects your users to the routes after they register. In the Symfony docs it shows you how to get a URL to your […]