Fix web path for icons and action button images in card and list display for sub directory and multilingual sites

Created on 17 March 2022, about 3 years ago
Updated 16 April 2025, 3 days ago

Problem/Motivation

First of all. Thank you for making the Project Browser module works ( It is so fast!! actions and reactions )

Only have issues with some asset icon images. not showing on the page.

Steps to reproduce

Given that a Drupal site was installed in a sub directory "/var/www/html/dev/pb1"
And the "example-domain.com" was configured to point at "/var/www/html/"
When navigating to "http://example-domain.com/dev/pb1/web/admin/modules/browse"
Then icon images are not showing up in the page

Given that a Drupal site was installed
And the "Language" module was installed to have a Multilingual site
And the "Detection and selection" for French and Spanish languages were activated on top of English
And the ( /en, /fr, /es, ...) were filled for them
When navigating to "http://example-domain.com/fr/admin/modules/browse" or other languages
Then icon images are not showing up in the page

Proposed resolution

  • Add {drupalSettings.project_browser.origin_url}
  • Have all images been loaded in multilingual with URL language Detection and selection switched on ( /en, /fr, /es, ...)
  • Have it work with sub directory installed Drupal

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
  • ☐ Code review from 1 Drupal core team member
  • ☐ Full testing and approval
  • ☐ Credit contributors
  • ☐ Review with the product owner
  • ☐ Release

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

1.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

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇮Finland ronttizz Helsinki

    We seem to have this exact issue with our multilingual project as well. Patches doesn't seem to apply to beta2.

Production build 0.71.5 2024