diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index 9501207e0..436024ee3 100755
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -31,7 +31,7 @@
= stylesheet_link_tag '/inert.css', skip_pipeline: true, media: 'all', id: 'inert-style'
- if Setting.custom_css.present?
- = stylesheet_link_tag custom_css_path, media: 'all'
+ = stylesheet_link_tag custom_css_path, host: request.host, media: 'all'
= yield :header_tags