Closed
Description
🐞 Bug report
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Is this a regression?
Yes, the previous version in which this bug was not present was: 14.0.3Description
Writing the tag <base href="." />
in the <head>
section of the file index.html was respected when issuing the command ng build
.
Now it is replaced with <base href="/" />
which makes it impossible to load the .js and .css files needed to run the app, because they are not found if the app is not deployed on the root directory of the server.
🔬 Minimal Reproduction
Just create a new project with version 14.0.4, then modify the index.html file, <base href="." />
or <base href="./" />
, and after building the resulting (dist directory) index.html should have <base href="/" />
instead of the correct configured value for the tag.
🔥 Exception or Error
🌍 Your Environment
Angular CLI: 14.0.4
Node: 16.13.2
Package Manager: npm 8.13.2
OS: win32 x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1400.4 (cli-only)
@angular-devkit/core 14.0.4 (cli-only)
@angular-devkit/schematics 14.0.4 (cli-only)
@schematics/angular 14.0.4 (cli-only)
Anything else relevant?