@companieshouse/ch-node-utils 1.3.5 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companieshouse/ch-node-utils",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "author": "companieshouse",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -18,7 +18,12 @@ It receives:
18
18
  {% if lang and lang == l.IsoCode %}
19
19
  <span class="govuk-body-s govuk-!-margin-2">{{ l.Name }}</span>
20
20
  {% else %}
21
- <a href="{{ lang2url.addLangToUrl(currentUrl, l.IsoCode, true) }}" lang="{{ l.IsoCode }}" rel="alternate" class="govuk-link govuk-!-margin-2 language-link">
21
+ <a href="{{ lang2url.addLangToUrl(currentUrl, l.IsoCode, true) }}"
22
+ lang="{{ l.IsoCode }}"
23
+ hreflang="{{ l.IsoCode }}"
24
+ rel="alternate"
25
+ class="govuk-link govuk-!-margin-2 language-link"
26
+ >
22
27
  <span>{{ l.Name }}</span>
23
28
  </a>
24
29
  {% endif %}
@@ -33,7 +38,7 @@ It receives:
33
38
  <script>
34
39
  document.addEventListener('DOMContentLoaded', function() {
35
40
  const languageLinks = document.querySelectorAll('.language-link');
36
-
41
+
37
42
  languageLinks.forEach(link => {
38
43
  link.addEventListener('click', function(event) {
39
44
  const language = this.getAttribute('lang');