diff --git a/plugins/discourse-internet-explorer/plugin.rb b/plugins/discourse-internet-explorer/plugin.rb index 5f80a79ad3b..0e97cf4cbd6 100644 --- a/plugins/discourse-internet-explorer/plugin.rb +++ b/plugins/discourse-internet-explorer/plugin.rb @@ -47,7 +47,7 @@ after_initialize do # to be loaded before other files register_html_builder('server:before-script-load') do |controller| if BrowserDetection.browser(controller.request.env['HTTP_USER_AGENT']) == :ie - path = controller.helpers.script_asset_path('/plugins/discourse-internet-explorer/js/ie') + path = "#{Discourse.base_uri}/plugins/discourse-internet-explorer/js/ie.js" <<~JAVASCRIPT