Saturday, March 18, 2017

NotFoundHttpException in RouteCollection.php after refresh with angular 2?

I have a problem when i refresh page. When user is logged in it navigate him to : /home, and thats it angular 2 route. And i get template from angular. But when i refresh page i get an error:

NotFoundHttpException in RouteCollection.php line 161:

Problem is that laravel now try to get that view,but i dont have it. Any suggestion how can i fix that. When i add that view in laravel, i get blank page when i refresh or when i go to /home.



via uzhas

Advertisement