ionic-team / ionic-team/ionicons

Loading svg fails when base-href set

Đang mở
#707 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
help wanted type: bug
Ngôn ngữ chính
TypeScript
Star
18.2k
Fork
2.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.