Skip to content

Commit

Permalink
[8074] Remove redirect from education.gov.uk domain (#4995)
Browse files Browse the repository at this point in the history
* Remove redirect from `education.gov.uk` domain

This is redirected at the infrastructure level now, to `service.gov.uk`.

I've deleted the redirect entirely together with it's feature flag,
rather than just switching off the feature flag.

* Remove spec for deleted redirect
  • Loading branch information
stevehook authored Jan 31, 2025
1 parent 9af9aea commit 372ac57
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 24 deletions.
7 changes: 0 additions & 7 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@
end
end

if Settings.features.redirect_education_domain
constraints(->(req) { req.host.end_with?("education.gov.uk") }) do
root to: redirect(Settings.base_url), as: :education_domain_root
get "/:path", to: redirect("#{Settings.base_url}/%{path}"), as: :education_domain
end
end

get :ping, controller: :heartbeat
get :healthcheck, controller: :heartbeat
get :sha, controller: :heartbeat
Expand Down
1 change: 0 additions & 1 deletion config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ features:
integrate_with_dqt: false
integrate_with_trs: false
funding: true
redirect_education_domain: true
hesa_trn_requests: false
hesa_import:
test_mode: false
Expand Down
1 change: 0 additions & 1 deletion config/settings/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ features:
school_direct_salaried: true
school_direct_tuition_fee: true
pg_teaching_apprenticeship: true
redirect_education_domain: true

environment:
name: beta
Expand Down
15 changes: 0 additions & 15 deletions spec/requests/redirect_to_service_gov_uk_spec.rb

This file was deleted.

0 comments on commit 372ac57

Please sign in to comment.