huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
242 stars 80 forks source link

We are creating CSS URLs for flags that don't exist #6847

Closed txau closed 1 month ago

txau commented 5 months ago

Bellow there is a piece of our vendor.css showing URLs to flag icons of 1x1 that do not exist. This is creating a big amount of 404 in our servers.

.flag-icon,.flag-icon-background{background-position:50%;background-repeat:no-repeat;background-size:contain}.flag-icon{display:inline-block;line-height:1em;position:relative;width:1.333333em}.flag-icon:before{content:" "}.flag-icon.flag-icon-squared{width:1em}.flag-icon-ad{background-image:url(../flags/4x3/ad.svg)}.flag-icon-ad.flag-icon-squared{background-image:url(../flags/1x1/ad.svg)}.flag-icon-ae{background-image:url(../flags/4x3/ae.svg)}.flag-icon-ae.flag-icon-squared{background-image:url(../flags/1x1/ae.svg)}.flag-icon-af{background-image:url(../flags/4x3/af.svg)}.flag-icon-af.flag-icon-squared{background-image:url(../flags/1x1/af.svg)}.flag-icon-ag{background-image:url(../flags/4x3/ag.svg)}.flag-icon-ag.flag-icon-squared{background-image:url(../flags/1x1/ag.sv

txau commented 1 month ago

Fixed in https://github.com/huridocs/uwazi/commit/f22979ec6a50d26a641f9a2004f894ed3ddbbd82