Browse Source

fix locations CYA routing

pull/792/head
Kat 3 years ago
parent
commit
4de62c496a
  1. 2
      app/controllers/locations_controller.rb

2
app/controllers/locations_controller.rb

@ -25,7 +25,7 @@ class LocationsController < ApplicationController
if location_params[:add_another_location] == "Yes"
redirect_to new_location_path(@scheme)
else
check_answers_path = @scheme.confirmed? ? scheme_check_answers_path(@scheme, anchor: "locations") : scheme_check_answers_path(@scheme)
check_answers_path = @scheme.confirmed? ? locations_path(@scheme) : scheme_check_answers_path(@scheme)
redirect_to check_answers_path
end
else

Loading…
Cancel
Save