I'm using a React frontend with a DRF backend an I've hosted both on the same URL. I get the static production build for the frontend and I've put it under the static folder and when a person goes to the main URL contoso.com they are redirected to contoso.com/static/index.html where the static build is served and the different URLs can be accessed correctly using the HashRouter and reloading the page, etc works as expected but the links are like contoso.com/static/index.html#home, contoso.com/static/index.html#menu, etc. I would like to have under the main URL only as in contoso.com/#home, contoso.com/#menu. The API backend for this exists under contoso.com/api.
Additional info: Hosted on IIS v10 with wfastcgi with static folder as public