Angular handling MVC routes

Viewed 146

I have an Angular SPA, with an ASP.NET Core Web API backend.

There is a backend serving not only the REST API endpoints. It also serves some MVC pages.

So for example, https://myapp.com/superadmin only exists in the backend there is no such route in Angular routes.

However, when I put the URL in the browser address bar, Angular kicks in and says page not found (Angular is handling the route). When I hit the return key from the address bar again, it hits the MVC endpoint and loads the page.

So my question is: how can we tell Angular not to handle those MVC routes, and just let the browser load from remote?

0 Answers
Related