Skip to content

Commit

Permalink
Allow external redirects to caa.co.uk
Browse files Browse the repository at this point in the history
This allows users to unpublish documents and redirect it to URLs on the
Civil Aviation Authority (CAA) website.

Requested in Zendesk ticket:
https://govuk.zendesk.com/agent/tickets/4994883

And agreed in Slack thread:
https://gds.slack.com/archives/CACV3TACU/p1694690016148749

I originally added this to Whitehall in PR alphagov/whitehall#8290
before realising that the document to be unpublished & redirected is
actually published via Specialist Publisher, and therefore this is
actually where the list needs updating. 🙈
  • Loading branch information
ollietreend committed Sep 22, 2023
1 parent 8ede240 commit 38dc1c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/validators/routes_and_redirects_validator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class RoutesAndRedirectsValidator < ActiveModel::Validator
EXTERNAL_HOST_ALLOW_LIST = %w[
.caa.co.uk
.gov.uk
.judiciary.uk
.nationalhighways.co.uk
Expand Down

0 comments on commit 38dc1c7

Please sign in to comment.