diff --git a/app/controllers/schemes_controller.rb b/app/controllers/schemes_controller.rb index c0a36b920..318f08ea6 100644 --- a/app/controllers/schemes_controller.rb +++ b/app/controllers/schemes_controller.rb @@ -15,6 +15,8 @@ class SchemesController < ApplicationController redirect_to schemes_organisation_path(current_user.organisation) unless current_user.support? all_visible_schemes = Scheme.visible + redirect_to clear_filters_url(filter_type: "schemes") and return if params[:reset] == "true" + @pagy, @schemes = pagy(filter_manager.filtered_schemes(all_visible_schemes, search_term, session_filters)) @searched = search_term.presence @total_count = all_visible_schemes.size diff --git a/app/views/form/guidance/_finding_scheme.erb b/app/views/form/guidance/_finding_scheme.erb index d2dea2202..d1d53674d 100644 --- a/app/views/form/guidance/_finding_scheme.erb +++ b/app/views/form/guidance/_finding_scheme.erb @@ -1,6 +1,6 @@ <%= govuk_details(summary_text: "Can’t find your scheme?") do %>
Schemes are attached to the organisation that owns the property. Check you have correctly answered question 1 "Which organisation owns this property?"
If your organisation’s schemes were migrated from old CORE, they may have new names and codes. Search by postcode to find your scheme.
-<%= govuk_link_to("View your organisation’s schemes", schemes_path) %>
+<%= govuk_link_to("View your organisation’s schemes", schemes_path(reset: true)) %>
<%= govuk_link_to("Read more about how schemes have changed", scheme_changes_path) %>
<% end %>