From bbefca71a53ff0c5043aed4709bf14d2a44b2a07 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:35:22 +0000 Subject: [PATCH] Add search url --- app/views/form/_address_autocomplete_question.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/form/_address_autocomplete_question.html.erb b/app/views/form/_address_autocomplete_question.html.erb index b6b8569ee..e151406c2 100644 --- a/app/views/form/_address_autocomplete_question.html.erb +++ b/app/views/form/_address_autocomplete_question.html.erb @@ -5,6 +5,7 @@ <%= f.govuk_select(question.id.to_sym, label: legend(question, page_header, conditional), "data-controller": "address-autocomplete", + "data-info": { search_url: address_options_url }.to_json, caption: caption(caption_text, page_header, conditional), hint: { text: question.hint_text&.html_safe }) do %> <% if answers.any? %>