Skip to content

Commit

Permalink
Redirect old privacy pages
Browse files Browse the repository at this point in the history
* Redirect /privacy route to the DfE wide policy
* Remove the existing views and controller action
  • Loading branch information
gpeng committed Jan 19, 2024
1 parent 23b40bf commit 088eb1d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 213 deletions.
7 changes: 0 additions & 7 deletions app/controllers/static_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,4 @@ def accessibility
render "register_for_npq_accessibility"
end
end

def privacy
case session[:identity_client_id]
when "register-for-npq"
render "register_for_npq_privacy"
end
end
end
119 changes: 0 additions & 119 deletions app/views/static/privacy.md

This file was deleted.

86 changes: 0 additions & 86 deletions app/views/static/register_for_npq_privacy.html.erb

This file was deleted.

2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@

get "/accessibility", to: "static#accessibility"
get "/cookies", to: "static#cookies"
get "/privacy", to: "static#privacy"
get "/privacy", to: redirect("https://www.gov.uk/government/publications/privacy-information-education-providers-workforce-including-teachers")

get "/performance", to: "performance#index"

Expand Down

0 comments on commit 088eb1d

Please sign in to comment.