Direct URL and Refresh Causing 404 Errors on My Site

Site: https://learning.epichydraulic.com/
Issue: I’m facing routing issues with my site. If I try to directly access a nested route like /a/b from the homepage, it throws an error. However, if I first visit /a and then navigate to /a/b, it works fine. Also, refreshing any page leads to a 404 error.

For context, my site was developed using lovable.dev.

@nikchavda12 Tell your “AI” to add the required Netlify rewrites for a Single Page Application.

See: