Chatwoot/app/helpers/frontend_urls_helper.rb
2019-10-20 14:17:26 +05:30

6 lines
191 B
Ruby

module FrontendUrlsHelper
def frontend_url(path, **query_params)
url_params = query_params.blank? ? '' : "?#{query_params.to_query}"
"#{root_url}app/#{path}#{url_params}"
end
end