Tag: routes

  • How to view Symfony 5+ FosJsRoutingBundle routes

    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 view Symfony routes

    I often need to view my current routes and how the Symfony kernel views them. This usually happens when I am adding new routes, I end up getting conflicts and have to resolve them by viewing what exists etc. The command to view your routes is really simple. Open your console and navigate to your […]

  • How to get URL Routes in your Javascript in Symfony 5+

    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 […]