# Onebox uses wrong URL for the favicon in link preview

**URL:** <https://meta.discourse.org/t/onebox-uses-wrong-url-for-the-favicon-in-link-preview/217074>\
**Category:** Bug\
**Created:** [February 4, 2022, 11:57am UTC](https://meta.discourse.org/t/onebox-uses-wrong-url-for-the-favicon-in-link-preview/217074 "2022-02-04T11:57:38Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![JoshuaH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshuah/32/209433_2.png) [@JoshuaH](https://meta.discourse.org/u/JoshuaH)\
**Post date:** [February 4, 2022, 11:57am UTC](https://meta.discourse.org/t/onebox-uses-wrong-url-for-the-favicon-in-link-preview/217074/1 "2022-02-04T11:57:38Z")

</div>

I noticed the favicons are broken for some of our websites in the onebox preview of a link.

For example:

On this website ([https://invantive.com/products/invantive-control-for-excel.html](https://invantive.com/products/invantive-control-for-excel.html)) the favicon URL is:

`<link rel="shortcut icon" href="https://invantive.com/favicon.ico">`

But the broken favicon in the preview shows the following favicon URL:

`<img src="https://invantive.com/products/invantive-control-for-excel.html/favicon.ico" class="site-icon">`

It seems to simply take the link URL and adding ‘/favicon.ico’ to the end of that path.

Any idea how to fix this?

Joshua

---

_[View the full topic](https://meta.discourse.org/t/onebox-uses-wrong-url-for-the-favicon-in-link-preview/217074)._
