From d066a7cfa438675386bb7988cbeef35b7976cede Mon Sep 17 00:00:00 2001 From: Ram Date: Thu, 13 Jun 2024 16:56:10 -0600 Subject: [PATCH] Add english language code to the `x-default` link attribute (#12479) * Add english language code to the `x-default` link attribute * Fixed quotes on template tag context variable * Fix indentation to pass lint build step in pipeline --- .../networkapi/templates/fragments/canonical_url.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/network-api/networkapi/templates/fragments/canonical_url.html b/network-api/networkapi/templates/fragments/canonical_url.html index aa9e6221f91..e8ed58a3e3f 100644 --- a/network-api/networkapi/templates/fragments/canonical_url.html +++ b/network-api/networkapi/templates/fragments/canonical_url.html @@ -4,7 +4,11 @@ {% get_available_languages as LANGUAGES %} - + +{% with "en" as ENGLISH_LANG_CODE %} + +{% endwith %} + {% for CODE, NAME in LANGUAGES %} {% get_language_info for CODE as lang %} {% if CODE == 'es' %}