ionic-team / ionic-team/ionicons
Loading svg fails when base-href set
- Vorherrschende Sprache
- TypeScript
- Sterne
- 18.2k
- Forks
- 2.1k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I am using angular 7.2.2 with ionic 4.6.0.
Everything is fine until i prepare my final deployment where base-href is set to some "/context/path/". Everything keeps working except ionicon resolution, still requesting the resources from "/svg/iconname.svg".
Anything i can do beside hardcoding the src myself?
Beitragsleitfaden
Rechercherichtung
Reproduce the issue using Angular 7.2.2 and Ionic 4.6.0 with a base-href of /context/path/. Inspect the ionicon SVG URL resolution entry point and verify that deployment-relative requests include the configured base path rather than requesting /svg/iconname.svg; confirm that the icons load without hardcoded src values.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100