# SVG broken only in Firefox when discourse copies it from external url

**URL:** <https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835>\
**Category:** Product Support\
**Created:** [28 maart 2019 om 16:37 UTC](https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835 "2019-03-28T16:37:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![OvermindDL1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overminddl1/32/115252_2.png) [@OvermindDL1](https://meta.discourse.org/u/OvermindDL1)\
**Post date:** [28 maart 2019 om 16:37 UTC](https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835/1 "2019-03-28T16:37:57Z")

</div>

When a URL is posted and it makes a onebox and the image in the onebox is an SVG then Discourse is breaking the SVG in the onebox for and only on Firefox when the original SVG still works in Firefox fine otherwise. They have the same SVG commands, not scripting, fairly basic, it’s not even really minimized any to make shrinking it worthwhile.

The URL posted was (though any on that site the image breaks only in firefox):

> **[GregTech for 1.7.10](https://gregtech.overminddl1.com/1.7.10/)**
>
> Downloads and Info for GregTech for Minecraft Version 1.7.10

The URL for the original SVG image is:  
[https://gregtech.overminddl1.com/static/images/logo\_gt\_site.svg](https://gregtech.overminddl1.com/static/images/logo_gt_site.svg)

The diff from the working one to the broken one is:

```diff
< <svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="128" width="128" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 128 128" xmlns:dc="http://purl.org/dc/elements/1.1/">
---
> <svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" height="128" width="128" version="1.1" viewBox="0 0 128 128">
20,24c20
< <linearGradient id="ac">
< <stop stop-color="#f0f04d" stop-opacity=".99608" offset="0"/>
< <stop stop-color="#aeae0c" stop-opacity=".99608" offset="1"/>
< </linearGradient>
< <linearGradient id="m" y2="137.8" xlink:href="#ac" gradientUnits="userSpaceOnUse" x2="263.27" gradientTransform="matrix(1.1228 0 0 1.1228 -185.11 -44.664)" y1="55.762" x1="181.48"/>
---
> <linearGradient id="m" y2="137.8" xlink:href="#b" gradientUnits="userSpaceOnUse" x2="263.27" gradientTransform="matrix(1.1228 0 0 1.1228 -185.11 -44.664)" y1="55.762" x1="181.48"/>
40,45c36,37
< <filter id="aa" style="color-interpolation-filters:sRGB" height="1.096" width="1.096" y="-0.048" x="-0.048">
< <feGaussianBlur stdDeviation="0.3791185"/>
< </filter>
< <filter id="z" style="color-interpolation-filters:sRGB" height="1.072" width="1.072" y="-0.036" x="-0.036">
< <feGaussianBlur stdDeviation="0.28433887"/>
< </filter>
---
> 
> 
55,63c47,49
< <filter id="y" style="color-interpolation-filters:sRGB" height="1.0711" width="1.0144" y="-.035541" x="-.0072186">
< <feGaussianBlur stdDeviation="0.16239486"/>
< </filter>
< <filter id="x" style="color-interpolation-filters:sRGB" height="1.0472" width="1.0161" y="-.023612" x="-.0080441">
< <feGaussianBlur stdDeviation="0.25528133"/>
< </filter>
< <filter id="w" style="color-interpolation-filters:sRGB" height="1.0396" width="1.0609" y="-.019809" x="-.030441">
< <feGaussianBlur stdDeviation="0.17757398"/>
< </filter>
---
> 
> 
> 
66,68c52
< <filter id="v" style="color-interpolation-filters:sRGB" height="1.048" width="1.048" y="-.024" x="-.024">
< <feGaussianBlur stdDeviation="0.18636459"/>
< </filter>
---
> 
74,88c58,62
< <filter id="u" style="color-interpolation-filters:sRGB" height="1.0294" width="1.0075" y="-.014688" x="-0.00377">
< <feGaussianBlur stdDeviation="0.13234916"/>
< </filter>
< <filter id="t" style="color-interpolation-filters:sRGB" height="1.0257" width="1.0078" y="-.012867" x="-.0039121">
< <feGaussianBlur stdDeviation="0.10401907"/>
< </filter>
< <filter id="s" style="color-interpolation-filters:sRGB" height="1.0123" width="1.0117" y="-.0061614" x="-.0058468">
< <feGaussianBlur stdDeviation="0.18272288"/>
< </filter>
< <filter id="r" style="color-interpolation-filters:sRGB" height="1.2179" width="1.0127" y="-.10897" x="-.0063496">
< <feGaussianBlur stdDeviation="0.12714919"/>
< </filter>
< <filter id="q" style="color-interpolation-filters:sRGB" height="1.0209" width="1.0013" y="-.010451" x="-.00063654">
< <feGaussianBlur stdDeviation="0.016550724"/>
< </filter>

```

---

_[View the full topic](https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835)._
