Last updated: 9 Dec 2024
Disable search autocomplete
Autocomplete for GOV.UK site search is a feature that launched in December 2024, while it is a new feature there is a simple mechanism to disable it.
To disable the autocomplete functionality for GOV.UK site search for a GOV.UK environment:
- Open the appropriate
values-<environment>.yaml
file from GOV.UK Helm Charts, for example values-production.yaml - Find the
disableSearchAutocomplete
variable and set it totrue
- Open a PR to apply the change
- Once merged the variable will propagate across apps
As pages are cached disabling this feature will not happen instantly and will apply to pages gradually as their cache times expire. It may take up-to 10 minutes for this to be applied to all pages of GOV.UK.