Problem/Motivation

I found this in CSS, but my files are located at /mysite/web/themes/contrib/bootstrap/images/icons/application-pdf.png

Path is incorrect:

.file--application-pdf {
    background-image: url(/themes/contrib/bootstrap/images/icons/application-pdf.png);
}

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

marc.bau created an issue. See original summary.

marc.bau’s picture

Replacing /themes/contrib/bootstrap/images/ with ../../images/ in file.css works in both uncompressed and compressed CSS mode

marc.bau’s picture

I also suspect (not tested) that the SASS subtheme also has a bug about this as ../../contrib/bootstrap/ looks incorrect to me.

marc.bau’s picture

Title: Path to application-pdf.png incorrect » Path to mime-type .png's is incorrect
marc.bau’s picture

Version: 5.0.0 » 5.0.1

Still broken

hatuhay’s picture

Category: Bug report » Support request
Status: Active » Closed (works as designed)

For css subtheme there is no 100% working definition as it will depend os specific folder structures.
On scss subthemes a variable is set to allow customizations.
In your case and any other folder structures different from theme's "standard" path should be customized on subtheme's css

marc.bau’s picture

Version: 5.0.1 » 5.0.x-dev
Category: Support request » Bug report
Status: Closed (works as designed) » Needs work

I'm sorry, but this is not correct.

  • Replace /themes/contrib/bootstrap/ with ../../ in file.css.
  • Replace /themes/contrib/bootstrap/ with ../../ in forum.css.
  • Replace /themes/contrib/bootstrap/ with ../../ in help.css.
  • Replace /themes/contrib/bootstrap/ with ../../ in icons.css.
  • Fix {$bootstrap_path_images} in file.scss and so on

Try it out, please.