Fix Drupal Routing Path for Vartheme BS5 Theme to Preload Fonts and Webfonts Correctly

Created on 20 April 2025, 7 days ago

Problem/Motivation

The current implementation in Vartheme BS5 uses incorrect or hardcoded paths when preloading fonts and webfonts. This causes fonts not to be preloaded properly, affecting site performance (in some cases ) and font rendering behavior.
When working with DDEV or LAMP with a sub folder
When working with a DDEV storybook link requesting from the DDEV Varbase link

Proposed resolution

Update the theme variables and asset loading logic to use the correct Drupal routing paths for preloading fonts and webfonts, ensuring compatibility with theme base paths and aggregated asset loading.

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024