- 🇳🇱Netherlands pefferen
created a ticket in socialbase and applied patch there https://www.drupal.org/project/socialbase/issues/3416305 🐛 File link icons are broken when the installation is under a subdirectory Needs review
When Social is installed under a domain's directory, ex. http://www.example.com/social/, the mimetype icons are broken whenever uploading a file in a node, post or comment.
This is due to a hard-coded /
base path in file-link
templates.
<span class="file-icon">
<img class="node-file__icon" src="/profiles/contrib/social/themes/socialbase/assets/images/mime-icons/icon_1_image_x16.png" srcset="/profiles/contrib/social/themes/socialbase/assets/images/mime-icons/icon_1_image_x32.png 2x" alt="image">
</span>
<span class="file-icon">
<img class="node-file__icon" src="/profiles/contrib/social/themes/socialbase/assets/images/mime-icons/icon_1_pdf_x16.png" srcset="/profiles/contrib/social/themes/socialbase/assets/images/mime-icons/icon_1_pdf_x32.png 2x" alt="pdf">
</span>
<span class="card-file__type">
<img class="card-file__icon" src="/profiles/contrib/social/themes/socialbase/assets/images/mime-icons/icon_1_pdf_x16.png" srcset="/profiles/contrib/social/themes/socialbase/assets/images/mime-icons/icon_1_pdf_x32.png 2x" alt="pdf">
<span class="card-file__size">147.28 KB</span>
</span>
The same thing happens in other use-cases, like when trying to upload an attachment to a comment (enable social_comment_upload
module).
Closed: won't fix
9.0
Front-End
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
created a ticket in socialbase and applied patch there https://www.drupal.org/project/socialbase/issues/3416305 🐛 File link icons are broken when the installation is under a subdirectory Needs review