Skip to content

Preloaded fonts served from wrong path #442

@sevmonster

Description

@sevmonster

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions