I’m facing an issue with my React app that I recently deployed on hostinger. The app works perfectly in the local environment, and the page refreshes when I click links inside the webpage. However, navigation is broken when I build and upload the app to the internet using a hosting server. Here’s the issue:
When I navigate to the site (https://website.com), the main page loads fine. Still, when I click on a link, the URL changes in the address bar, but the page doesn’t reload to reflect the new route.
I have tried lots of settings and configurations but didn’t work out. I want to have access to nested routing on my website.