Fonts are not resolved when using base href
- Lenguaje dominante
- TypeScript
- Estrellas
- 27k
- Forks
- 11.8k
- Merge medio
- 14 h 23 min
- PR fusionados (30 d)
- 162
Descripción
### Command
build
### Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
I'm trying to deploy an Angular application to GitHub Pages using GitHub Actions. I've set the base href correctly, but the sources aren't showing up. The routes to get the sources ignore the base href. I've also tried specifying the deploy-url, but I get the same result.
### Minimal Reproduction
1. Create a project.
2. Add a custom font that's in the public folder.

3. Build the project with a base href and deploy it.
4. Note that the font URL ignores the base href.
### Exception or Error
```text
```
### Your Environment
```text
Angular CLI: 19.1.7
Node: 22.14.0
Package Manager: npm 10.9.2
OS: win32 x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1901.7 (cli-only)
@angular-devkit/core 19.1.7 (cli-only)
@angular-devkit/schematics 19.1.7 (cli-only)
@schematics/angular 19.1.7 (cli-only)
```
### Anything else relevant?
_No response_
Guía de contribución
Línea de trabajo
Empieza reproduciendo el comando `build` con una fuente personalizada en la carpeta `public` y un base href configurado. Traza cómo la compilación de Angular CLI genera la URL de la fuente y, después, verifica que la salida compilada la resuelva bajo la ruta base en lugar de en la raíz del sitio.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- build-system
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100