riotchat icon indicating copy to clipboard operation
riotchat copied to clipboard

Preloaded fonts served from wrong path

Open sevmonster opened this issue 4 years ago • 1 comments

I noticed that preloaded fonts are being served from the root of the site instead of relatively, leading to 404's. Is this an Element bug or for here?

Release Element index.html: image

Defined here: https://github.com/vector-im/element-web/blob/996d79847ab6f2dcc1e060cc249c9739c1cf21dc/src/vector/index.html#L56

Fix in nginx (using the community-maintained config):

    location ~ \.woff2?$ {
        # BUG: fix /fonts in riotchat
        rewrite ^/fonts/ /apps/riotchat/riot$request_uri permanent;

sevmonster avatar Dec 08 '21 08:12 sevmonster

Good catch. Whether it is an upstream issue would depend on whether serving in a subdomain is an officially supported setup which to be honest, I don't know. Either way, I don't think they would be opposed to a fix for it.

gary-kim avatar Dec 12 '21 01:12 gary-kim