diff --git a/app/components/application_component.rb b/app/components/application_component.rb index a964792b7a29..e603d1194588 100644 --- a/app/components/application_component.rb +++ b/app/components/application_component.rb @@ -37,7 +37,9 @@ def initialize(model = nil, **options) @options = options end - delegate :url_helpers, to: 'Rails.application.routes' + def url_helpers + @url_helpers ||= OpenProject::StaticRouting::StaticUrlHelpers.new + end class << self ##