riotchat
riotchat copied to clipboard
Preloaded fonts served from wrong path
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:

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;
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.