Browse Source

User path helper

pull/2535/head
Kat 2 years ago committed by kosiakkatrina
parent
commit
b8cb938226
  1. 4
      app/helpers/filters_helper.rb

4
app/helpers/filters_helper.rb

@ -126,9 +126,9 @@ module FiltersHelper
def filter_search_url(category)
case category
when :user
ENV["RAILS_RELATIVE_URL_ROOT"].present? ? "#{ENV['RAILS_RELATIVE_URL_ROOT']}/users/search" : "/users/search"
search_users_path
when :owning_organisation, :managing_organisation
ENV["RAILS_RELATIVE_URL_ROOT"].present? ? "#{ENV['RAILS_RELATIVE_URL_ROOT']}/organisations/search" : "/organisations/search"
search_organisations_path
end
end

Loading…
Cancel
Save