From b822914e23f977c2e13aefec897e426617c1f1e0 Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Mon, 6 Jan 2020 10:55:47 +0000 Subject: [PATCH] Send asset path to Header component The SVG fallback image for the GOV.UK logo starts its path as '/assets/images' by default unless you send in an alternative root. This sends in our static asset host root to stop the image 404'ing on browsers that load it. --- app/templates/admin_template.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index feefab8da..896dc6efd 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -125,7 +125,8 @@ "homepageUrl": url_for('main.show_accounts_or_dashboard'), "productName": "Notify", "navigation": navigation, - "navigationClasses": "govuk-header__navigation--end" + "navigationClasses": "govuk-header__navigation--end", + "assetsPath": asset_path + "images" }) }} {% endblock %}