Skip to content

Commit

Permalink
Use ‘q’ for default search param to match that used on nhs.uk
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Aug 20, 2024
1 parent f932564 commit d9a8437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/header/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div class="nhsuk-header__search-wrap" id="wrap-search">
<form class="nhsuk-header__search-form" id="search" action="{{ params.search.action | default('https://www.nhs.uk/search/') }}" method="get" role="search">
<label class="nhsuk-u-visually-hidden" for="search-field">{{ params.search.visuallyHiddenLabel | default('Search the NHS website') }}</label>
<input class="nhsuk-search__input" id="search-field" name="{{ params.search.name | default('search-field') }}" type="search" placeholder="Search" autocomplete="off">
<input class="nhsuk-search__input" id="search-field" name="{{ params.search.name | default('q') }}" type="search" placeholder="Search" autocomplete="off">
<button class="nhsuk-search__submit" type="submit">
<svg class="nhsuk-icon nhsuk-icon__search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<path d="M19.71 18.29l-4.11-4.1a7 7 0 1 0-1.41 1.41l4.1 4.11a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 10a5 5 0 1 1 5 5 5 5 0 0 1-5-5z"></path>
Expand Down

0 comments on commit d9a8437

Please sign in to comment.