|
|
|
@ -3,7 +3,11 @@ |
|
|
|
<% content_for :before_content do %> |
|
|
|
<% content_for :before_content do %> |
|
|
|
<%= govuk_back_link( |
|
|
|
<%= govuk_back_link( |
|
|
|
text: "Back", |
|
|
|
text: "Back", |
|
|
|
href: params[:referrer] == "check_answers" ? scheme_location_check_answers_path(@scheme, @location) : params[:referrer] == "details" ? scheme_location_path(@scheme, @location) : scheme_location_postcode_path(@scheme, @location), |
|
|
|
href: if params[:referrer] == "check_answers" |
|
|
|
|
|
|
|
scheme_location_check_answers_path(@scheme, @location) |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
params[:referrer] == "details" ? scheme_location_path(@scheme, @location) : scheme_location_postcode_path(@scheme, @location) |
|
|
|
|
|
|
|
end, |
|
|
|
) %> |
|
|
|
) %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
|