How in Angular 15 to redirect localhost:4200 to localhost:4200/{baseUrl}

75 Views Asked by At

App is hosted on /test. In previous versions I used

ng serve --base-href test

That seems to be gone now in Angular 15. So now I set in angular.json projects -> {projectName} -> architect -> build -> options -> baseHref Value to test.

Now app responds at: localhost:4200/test - great

Is there an extra setting that would make http://localhost:4200 redirect to http://localhost:4200/test

I tried using a proxy config but it ends up in an endless redirect loop.

0

There are 0 best solutions below