mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 20:20:34 +09:00
Make background image relative
I use Heimdall in a subfolder so that I access to it threw www.mydomain.com/heimdall/. Custom background image doesn't load because Heimdall generate an absolute link (ie : www.mydomain.com/storage/backgrounds/mycustomimage.jpeg). The link expected is www.mydomain.com/heimdall/storage/backgrounds/mycustomimage.jpeg. To fix this, you have to make the path relative by replace in the code "/storage" by "storage" or "./storage".
This commit is contained in:
@@ -95,7 +95,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
|
||||
$alt_bg = '';
|
||||
if($bg_image = Setting::fetch('background_image')) {
|
||||
$alt_bg = ' style="background-image: url(/storage/'.$bg_image.')"';
|
||||
$alt_bg = ' style="background-image: url(storage/'.$bg_image.')"';
|
||||
}
|
||||
$lang = Setting::fetch('language');
|
||||
\App::setLocale($lang);
|
||||
|
||||
Reference in New Issue
Block a user