-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add redirect of support/new to /support #1251
Conversation
b728807
to
1952efe
Compare
config/routes.rb
Outdated
@@ -39,7 +40,6 @@ | |||
|
|||
get "search/", to: "search#search" | |||
|
|||
resources :tickets, only: %i[new create] | |||
get "tickets/confirmation", to: "tickets#confirmation" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also remove this route - and add a redirect route for https://www.data.gov.uk/tickets/new
-> https://www.data.gov.uk/support
🙏 thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this look all right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Line 43 still needs deleting)
1952efe
to
7d02aef
Compare
config/routes.rb
Outdated
@@ -39,7 +40,8 @@ | |||
|
|||
get "search/", to: "search#search" | |||
|
|||
resources :tickets, only: %i[new create] | |||
get "tickets/new", to: redirect("https://www.data.gov.uk/support") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get "tickets/new", to: redirect("https://www.data.gov.uk/support") | |
get "tickets/new", to: redirect("/support") |
I think that's correct 🙏
config/routes.rb
Outdated
@@ -39,7 +40,6 @@ | |||
|
|||
get "search/", to: "search#search" | |||
|
|||
resources :tickets, only: %i[new create] | |||
get "tickets/confirmation", to: "tickets#confirmation" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Line 43 still needs deleting)
…eate To stop bots from being able to raise spam tickets.
7d02aef
to
4c6a2c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 please check the redirects work on integration before promoting to staging/production (as per https://docs.publishing.service.gov.uk/manual/data-gov-uk-deployment.html) - thanks!
To stop bots from being able to raise spam tickets.
[Trello card] (https://trello.com/c/TrY9IEND/2300-dgu-form-spam)