From 3da7794656d7283cbde4f7057a9ba1b52b33cfe8 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Fri, 27 Dec 2024 21:03:31 +0000 Subject: [PATCH] Import appSiteSearch component into appHeader component with context Without providing context, the canonicalUrl filter cannot be found --- components/header/template.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/header/template.njk b/components/header/template.njk index 3ee4f28..deebf6f 100644 --- a/components/header/template.njk +++ b/components/header/template.njk @@ -1,4 +1,4 @@ -{%- from "components/site-search/macro.njk" import appSiteSearch -%} +{%- from "components/site-search/macro.njk" import appSiteSearch with context -%} {%- if options.navigation -%} {%- set headerClasses = " govuk-header--full-width-border" -%} {% elif layout == "product" or layout == "collection" %}