diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index 9501207e081..436024ee35e 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