diff --git a/app/helpers/filters_helper.rb b/app/helpers/filters_helper.rb index 7370e0d3b..ad9f2c47e 100644 --- a/app/helpers/filters_helper.rb +++ b/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