Inter font paths are absolute #17575
Labels
A-Packaging
Packaging, signing, releasing
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Defect
Currently, paths to the Inter fonts are relative to the website root. It's not a problem if Element is hosted on its own domain (like https://develop.element.io where these fonts are loaded just fine). But if it's hosted under a custom path like https://example.com/element/ these fonts can't be loaded. All other resources have valid paths, only these fonts are broken. It can be easily fixed with this patch:
So that insteal of
<link rel="preload" as="font" href="/fonts/Inter/Inter-SemiBoldItalic.10a60d8.woff2" crossorigin="anonymous"/>
it would be<link rel="preload" as="font" href="./fonts/Inter/Inter-SemiBoldItalic.10a60d8.woff2" crossorigin="anonymous"/>
. I'm not completely sure if this solution is good enough but it works for me. Maybe it's better to fix these paths somewhere else.The text was updated successfully, but these errors were encountered: