Ionic 4 + Net core

Hello everyone,

I have a project that needs to be done in Visual Studio 2017 with capacitor(not Cordova). I am having some problems with the routing.

When I firstly launch the project the routing works fine but if I reload the HomePage it throws a 404 Error. It is a blank project so at this moment it only has the HomePage.

So I hope anyone can help me.