git: db31137d09 - main - website: Fix Security Advisories and Errata Notices links in translations
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 01 Feb 2025 23:22:57 UTC
The branch main has been updated by dbaio: URL: https://cgit.FreeBSD.org/doc/commit/?id=db31137d09b82f14f0f838c80f581a6aaa24518d commit db31137d09b82f14f0f838c80f581a6aaa24518d Author: Danilo G. Baio <dbaio@FreeBSD.org> AuthorDate: 2025-02-01 22:57:47 +0000 Commit: Danilo G. Baio <dbaio@FreeBSD.org> CommitDate: 2025-02-01 22:57:47 +0000 website: Fix Security Advisories and Errata Notices links in translations Always link the .asc files to the English version. They are not translated. PR: 277547 Reported by: Alexander Leidinger <netchild@FreeBSD.org> --- website/themes/beastie/layouts/security/list.html | 4 ++-- website/themes/beastie/layouts/security/single.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/themes/beastie/layouts/security/list.html b/website/themes/beastie/layouts/security/list.html index 11f204d301..ffdbd8f81e 100644 --- a/website/themes/beastie/layouts/security/list.html +++ b/website/themes/beastie/layouts/security/list.html @@ -27,7 +27,7 @@ {{ range .notices }} <tr> <td class="txtdate">{{ .date }}</td> - <td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> + <td><a href="{{.Site.BaseURL | absURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> </tr> {{ end }} {{ end }} @@ -37,7 +37,7 @@ {{ range .advisories }} <tr> <td class="txtdate">{{ .date }}</td> - <td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> + <td><a href="{{.Site.BaseURL | absURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> </tr> {{ end }} {{ end }} diff --git a/website/themes/beastie/layouts/security/single.html b/website/themes/beastie/layouts/security/single.html index 11f204d301..ffdbd8f81e 100644 --- a/website/themes/beastie/layouts/security/single.html +++ b/website/themes/beastie/layouts/security/single.html @@ -27,7 +27,7 @@ {{ range .notices }} <tr> <td class="txtdate">{{ .date }}</td> - <td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> + <td><a href="{{.Site.BaseURL | absURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> </tr> {{ end }} {{ end }} @@ -37,7 +37,7 @@ {{ range .advisories }} <tr> <td class="txtdate">{{ .date }}</td> - <td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> + <td><a href="{{.Site.BaseURL | absURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> </tr> {{ end }} {{ end }}