I only get the url index when doing ionic build

Hello. I am having problems disploying the website on a web server.

For that I run the following command

ionic build

Then I copy what is in the build folder to the web server

But it only shows me the url index.html. When in index, I click a button to redirect me to a specific url, like / login, it can’t find the page.

How can I build all urls and not only the index page?

Thanks in advance