-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
jryans
added
A-Packaging
Packaging, signing, releasing
P3
S-Tolerable
Low/no impact on users
labels
Jun 7, 2021
emikulic
added a commit
to emikulic/element-web
that referenced
this issue
Dec 4, 2021
Currently, paths look like /fonts/Inter which is fine if Element is installed in the wwwroot. This change makes the paths relative (./fonts/Inter) which helps when it's not. Credit goes to @rkfg. Fixes element-hq#17575.
germain-gg
added
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Impairs non-critical functionality or suitable workarounds exist
and removed
P3
S-Tolerable
Low/no impact on users
labels
Dec 8, 2021
As discussed in #20040
|
This got fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: