I am rewriting a ASP.Net 4.5 application to Angular2. When I try to refresh a ng2-Route, the browser goes to the server and can not find the url.
It's the same problem like in this question. The solution there is only for ASP.Net 5. I have tried the following in my Route.config:
routes.MapRoute(
name: "spa-fallback",
url: "{*url}",
defaults: new { controller = "Home", action = "Index" }
);
But that does not work. Is there a way to handle client-side urls in ASP.Net 4.5?