Answer the question
In order to leave comments, you need to log in
Symfony gives a 404 error when updating the URL, what could be the reason for this problem?
Index page
For example, I want to reload this page
. An error pops up that there is no page.
Then I delete / home
and update this path
. As a result, the page is loaded normally + / home is added
.
Answer the question
In order to leave comments, you need to log in
Show what will give:
Most likely the route is incorrectly described
You need to add a route to symphony that will match the /home url and specify the controller and action for it as for your index route. Something like:
my_application_home_page:
path: /home
defaults: { _controller: MyBundle:IndexController:index }
and for all urls that should be processed by your angular - create appropriate routes in symphony that will call the same action - indexAction of your controller. Thus, after reloading the page, your index controller will be called at any url, and Angular will pick up the url on the fly and call the desired Angular controller
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question