Skip to content

Commit

Permalink
tidy up routes
Browse files Browse the repository at this point in the history
  • Loading branch information
martyn-w committed Apr 26, 2024
1 parent 39eeb72 commit 2e602f6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
end
end

get "/returning-to-teaching", to: redirect("https://teaching-vacancies.campaign.gov.uk/return-to-teaching/")
get "/non-uk-teachers/return-to-england-after-teaching-overseas", to: redirect("https://teaching-vacancies.campaign.gov.uk/return-to-england-after-teaching-overseas/")
get "/international-returners", to: redirect("https://teaching-vacancies.campaign.gov.uk/return-to-england-after-teaching-overseas/")
get "/explore-my-options/return-to-teaching/return-to-teaching-in-england-from-overseas", to: redirect("https://teaching-vacancies.campaign.gov.uk/return-to-england-after-teaching-overseas/")
get "/blog/returning-to-teaching-with-international-experience", to: redirect("https://teaching-vacancies.campaign.gov.uk/return-to-england-after-teaching-overseas/")
get "/blog/tag/non-uk-teachers", to: redirect("https://teaching-vacancies.campaign.gov.uk/return-to-england-after-teaching-overseas/")
get "/returning-to-teaching", to: redirect("https://teaching-vacancies.campaign.gov.uk/return-to-teaching/")

"https://teaching-vacancies.campaign.gov.uk/return-to-england-after-teaching-overseas/".tap do |teaching_vacancies|
get "/non-uk-teachers/return-to-england-after-teaching-overseas", to: redirect(teaching_vacancies)
get "/international-returners", to: redirect(teaching_vacancies)
get "/explore-my-options/return-to-teaching/return-to-teaching-in-england-from-overseas", to: redirect(teaching_vacancies)
get "/blog/returning-to-teaching-with-international-experience", to: redirect(teaching_vacancies)
get "/blog/tag/non-uk-teachers", to: redirect(teaching_vacancies)
end

if Rails.env.rolling? || Rails.env.preprod? || Rails.env.production? || Rails.env.pagespeed?
get "/assets/*missing", to: "errors#not_found", via: :all
Expand Down

0 comments on commit 2e602f6

Please sign in to comment.