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

Homepage: Fix search form path #4346

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Homepage: Fix search form path #4346

merged 1 commit into from
Oct 28, 2024

Conversation

csutter
Copy link
Contributor

@csutter csutter commented Oct 28, 2024

What

Fix the URL for the homepage search form

Why

The form points to the wrong path for search - /search is a landing page, not the actual all content finder (which is /search/all). This means users searching from the homepage have to go through an unnecessary redirection:
image

See also: alphagov/govuk_publishing_components#4341

How

  • Changes URL in the form
  • Cleans up the form code by using Rails's tag helper for neater data attributes

The form points to the wrong path for search - `/search` is a landing
page, not the actual all content finder (which is `/search/all`). This
means users searching from the homepage have to go through an
unnecessary redirection.

Also cleans up the form code by using Rails's tag helper.

See also: alphagov/govuk_publishing_components#4341
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4346 October 28, 2024 11:05 Inactive
Copy link
Contributor

@leenagupte leenagupte left a comment

Choose a reason for hiding this comment

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

🎉

@csutter csutter merged commit c0256e0 into main Oct 28, 2024
13 checks passed
@csutter csutter deleted the search-path branch October 28, 2024 11:54
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.

3 participants