Image URL fixed

This commit is contained in:
Sam Bell 2018-07-12 13:38:43 +01:00 committed by GitHub
parent 89cb8c8e2f
commit e2aad7914b
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@
@if (($event->bg_type == 'image' || $event->bg_type == 'custom_image' || Input::get('bg_img_preview')) && !Input::get('bg_color_preview'))
<style>
body {
background: url({{(Input::get('bg_img_preview') ? '/'.Input::get('bg_img_preview') : asset(config('attendize.cdn_url_static_assets').'/'.$event->bg_image_path))}}) no-repeat center center fixed;
background: url({{(Input::get('bg_img_preview') ? URL::to(Input::get('bg_img_preview')) : asset(config('attendize.cdn_url_static_assets').'/'.$event->bg_image_path))}}) no-repeat center center fixed;
background-size: cover;
}
</style>