Repository navigation
fix: rebase external font URLs onto the bundled stylesheet - #8373
SamTV12345 merged 1 commit into
Conversation
Since fonts stopped being inlined (ether#8314), the authored URLs in src/static/css/pad/ are emitted verbatim. They are relative to the importing file, so they only resolve when the bundle is served from the document root; under a subpath prefix the ../.. segments climb out of it and every editor and toolbar font 404s. Rebase external font URLs onto the entry stylesheet's directory, which mirrors the served layout under src/static, and leave absolute URLs alone. Add a regression test that resolves the font URLs against a prefixed stylesheet and fails if any escapes the served static root.
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoFix font URLs in bundled CSS under subpath deployments
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can open the rule or relationship behind a finding in one click |
|
This is ready for review @SamTV12345, thanks a lot 🙇🏻 |
Thanks for the work. Confirmed :) |
Since fonts stopped being inlined (#8314), the authored URLs in
src/static/css/pad/are emitted verbatim.They are relative to the importing file, so they only resolve when the bundle is served from the document root; under a subpath prefix the
../..segments climb out of it and every editor and toolbar font 404s.Rebase external font URLs onto the entry stylesheet's directory, which mirrors the served layout under
src/static, and leave absolute URLs alone. Add a regression test that resolves the font URLs against a prefixed stylesheet and fails if any escapes the served static root.UI changes
/cc @nejch
🛠️ with ❤️ by Siemens