base href value is not respected when building in version 14.0.4 #23475
Labels
2022Q3 Fixit
Candidates for the Q3 2022 fix-it
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
workaround1: obvious
🐞 Bug report
Command (mark with an
x
)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 commandng 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
Anything else relevant?
The text was updated successfully, but these errors were encountered: