samedi 13 février 2016

Angular2 + Laravel5 - how to correct organize routing between them?

I play with L5 and A2.

I have 2 routes for L5: '/' (base) and '/edit'. I have 2 routes for A2: '/' (base) and '/edit' (name: 'Edit');

When i will load blablabla.com page, doing some stuff - Angular2 will redirecting me by '/edit' Angular2 route on blablabla.com/edit url. At this A2 route - some A2 component will loaded.

But, when i stay on blablabla.com/edit url, if i reload page - on url blablabla.com/edit running Laravel5 route '/edit' with 404 error.

At this situation how i can connect L5 route '/edit' with A2 route '/edit'?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire