Skip to content

Commit

Permalink
Merge pull request #669 from alphagov/PP-11087-security-txt-redirect
Browse files Browse the repository at this point in the history
PP-11087 Fix redirecting security text to cabinet office
  • Loading branch information
sfount committed Aug 1, 2023
2 parents 7ad7152 + dd87166 commit a4f8b3b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ def tel_to(text, className)
sprockets.append_path File.join(root, "node_modules/govuk-frontend/")
sprockets.append_path File.join(root, "node_modules/gaap-analytics/build")

# Special handling for redirecting to security.txt as it is a non-html content type.
page "/security.txt", content_type: "text/html"
redirect "security.txt", to: "https://vdp.cabinetoffice.gov.uk/.well-known/security.txt"
redirect "security.txt.html", to: "https://vdp.cabinetoffice.gov.uk/.well-known/security.txt"

redirect "contact/index.html", to: "/support/"
Expand Down

0 comments on commit a4f8b3b

Please sign in to comment.