AspNetCoreMvcAngular icon indicating copy to clipboard operation
AspNetCoreMvcAngular copied to clipboard

Routing only working within Angular (direct URL in browser doesn't work)

Open cmcfie opened this issue 5 years ago • 1 comments

Hi @damienbod,

Thank you for this piece of brilliance.

I have noticed that the /about only works if you route within Angular. If you enter /about in the url of the browser it gets a 404 error, likewise if you do the same with /default. So it looks like we need some sort of fallback for routes.

Is there anyway to get this to work?

cmcfie avatar Sep 09 '20 11:09 cmcfie

@cmcfie thanks, I'll have a look into this, but it seems like the server routing is getting hit first and not the client routing.

Greetings Damien

damienbod avatar Sep 10 '20 06:09 damienbod