Skip to content
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

Merged
merged 1 commit into from
Apr 8, 2024
Merged

Conversation

baisa
Copy link
Contributor

@baisa baisa commented Apr 8, 2024

To stop bots from being able to raise spam tickets.

[Trello card] (https://trello.com/c/TrY9IEND/2300-dgu-form-spam)

@baisa baisa marked this pull request as ready for review April 8, 2024 10:44
@baisa baisa force-pushed the redirect-support-new-page branch from b728807 to 1952efe Compare April 8, 2024 11:07
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"
Copy link
Contributor

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!

Copy link
Contributor Author

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?

Copy link
Contributor

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)

@baisa baisa force-pushed the redirect-support-new-page branch from 1952efe to 7d02aef Compare April 8, 2024 11:56
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")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"
Copy link
Contributor

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.
@baisa baisa force-pushed the redirect-support-new-page branch from 7d02aef to 4c6a2c7 Compare April 8, 2024 13:17
Copy link
Contributor

@ChrisBAshton ChrisBAshton left a 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!

@baisa baisa merged commit 42b33fd into main Apr 8, 2024
3 checks passed
@baisa baisa deleted the redirect-support-new-page branch April 8, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants