ProfessionalWiki / chameleon

Provides a highly flexible and customizable skin using Bootstrap 4
https://www.mediawiki.org/wiki/Skin:Chameleon
Other
116 stars 62 forks source link

background-image scss relative link breaks #303

Closed Hasenhirn closed 2 years ago

Hasenhirn commented 2 years ago
Software | Version -- | -- MediaWiki | 1.35.5 PHP | 7.4.27 (apache2handler) MariaDB | 10.6.5-MariaDB-1:10.6.5+maria~focal ICU | 67.1 Lua | 5.1.5 Chameleon | 3.4.1

Just intended as an info: In my wiki, as soon as I put an image in a page using the standard Wiki Markup Language, the scss interpretation somehow gets messy.

Example:

The solution is quite easy: use the absolute path in the style.scss, so background-image: url("http://192.168.0.1:8000/logo/banner.png") Maybe it helps someone or can be fixed in the future! Cheers Henning

Hasenhirn commented 2 years ago

I am closing this issue. The solution is quite easy. Upload the file through your mediawiki instance. Use the URL after $IP. For example: background-image: url(/images/8/87/Banner.png);