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

  1. Open the appropriate values-<environment>.yaml file from GOV.UK Helm Charts, for example values-production.yaml
  2. Find the disableSearchAutocomplete variable and set it to true
  3. Open a PR to apply the change
  4. 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.