On browser page refresh the application page is redirecting to 404 page

Currently I am using angular 8 version with keycloak 23 version. The application is running perfectly fine the issue only we are facing is if we click on browser page refresh then the page is redirecting to 404. Is there any setting that we need to check or any code change is require for that. Can any one guide me on it ASAP?