Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: ERROR Error: Error retrieving icon :github! Http failure response for /icons/github.svg: 0 undefined #4

Closed
1 of 2 tasks
esthersoftwaredev opened this issue Jun 17, 2024 · 1 comment · Fixed by #5
Assignees
Labels
🐛 bug Something isn't working 🖼️ images & icons

Comments

@esthersoftwaredev
Copy link
Member

esthersoftwaredev commented Jun 17, 2024

Describe the bug

In the blog social icons partial component, adding custom mat icons using path icons/github.svg in the constructor
like so:

		this.iconRegistry.addSvgIcon("github",
			this.sanitizer.bypassSecurityTrustResourceUrl("/icons/github.svg")
		);

resulted in getting this error:

image

Steps to resolve

to avoid it, absolute file path must be used since sources suggested that is a solution for SSR rendered sites

		this.iconRegistry.addSvgIcon("github",
			this.sanitizer.bypassSecurityTrustResourceUrl(`${deployedUrl}icons/github.svg`)
		);

Browsers

No response

Additional context (Is this in dev or production?)

No response

I would be willing to submit a PR to fix this issue

Copy link

Thanks for the issue, our team will look into it as soon as possible! If you would like to work on this issue, please wait for us to decide if it's ready. The issue will be ready to work on once we remove the "needs triage" label.

To claim an issue that does not have the "needs triage" label, please leave a comment that says ".take". If you have any questions, please reach out to us on Discord or follow up on the issue itself.

For full info on how to contribute, please check out our contributors guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🖼️ images & icons
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant