Merge pull request #10019 from opf/fix/base-url-relative-root

Use the root_url which includes relative URL root for the setting macro
pull/10027/head
ulferts 3 years ago committed by GitHub
commit 2d5297a3bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      lib/open_project/text_formatting/filters/setting_macros_filter.rb

@ -64,7 +64,11 @@ module OpenProject::TextFormatting
end
def base_url
OpenProject::Application.root_url
url_helpers.root_url.chomp('/')
end
def url_helpers
@url_helpers ||= OpenProject::StaticRouting::StaticRouter.new.url_helpers
end
##

Loading…
Cancel
Save