OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/helpers/additional_url_helpers.rb

22 lines
429 B

module AdditionalUrlHelpers
include AuthenticationStagePathHelper
module_function
def fixed_home_url
home_url(script_name: OpenProject::Configuration.rails_relative_url_root)
end
def add_params_to_uri(uri, args = {})
uri = URI.parse uri
query = URI.decode_www_form String(uri.query)
args.each do |k, v|
query << [k, v]
end
uri.query = URI.encode_www_form query
uri.to_s
end
end