baseHref setting in angular.json

hi @rapropos I originally marked your answer as a solution but have only just got round to trying it (!) and I have found this does not fix my issue.

in the nginx config I have:

location /web {​​​​​​
        alias /home/ionic/www;
        try_files $uri $uri/ /index.html =404;
}​​​​​​

My application web files are all sitting in the ionic/www folder

The application is served with an initial launch url of https://servername/web

The app works ok on the devices but will only serve in the browser if I add

"baseHref": "/web/"

in my angular.json file and as I said I would like to remove this and have all builds work across all three platforms.

I looked at what you suggested in the link you posted and I assumed you meant change the alias setting and add “/web/” at the end of it but this did not work. I got an immediate page not found error when the app tried to launch.

I know nothing about nginx so may have misunderstood what you were suggesting?