diff --git a/app/helpers/theme_helper.rb b/app/helpers/theme_helper.rb index e16086aaeb..7e4fd0a002 100644 --- a/app/helpers/theme_helper.rb +++ b/app/helpers/theme_helper.rb @@ -26,7 +26,7 @@ module ThemeHelper def custom_stylesheet if active_custom_stylesheet.present? stylesheet_link_tag( - "/css/#{active_custom_stylesheet}.css", # custom_css_path(active_custom_stylesheet), + custom_css_path(active_custom_stylesheet), host: root_url, media: :all, skip_pipeline: true diff --git a/config/routes.rb b/config/routes.rb index 6b42b85c86..1f219a09e3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -55,7 +55,7 @@ Rails.application.routes.draw do get 'manifest', to: 'manifests#show', defaults: { format: 'json' } get 'intent', to: 'intents#show' - get 'custom.css', to: 'custom_css#show', as: :custom_css + get 'custom.css', to: 'custom_css#show' resources :custom_css, only: :show, path: :css get 'system.css', to: 'system_css#show', as: :system_css get 'user_custom.css', to: 'user_custom_css#show', as: :user_custom_css