refactor: Use RelPermalink for internal links (#1231)

This commit is contained in:
Jimmy
2026-01-25 22:31:58 +01:00
committed by GitHub
parent c872a77edb
commit 633c8c6b9f
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -83,7 +83,7 @@
{{ partial "helper/icon" "language" }}
<select name="language" title="language" onchange="window.location.href = this.selectedOptions[0].value">
{{ range . }}
<option value="{{ .Permalink }}" {{ if eq .Language.Lang $currentLanguageCode }}selected{{ end }}>{{ .Language.LanguageName }}</option>
<option value="{{ .RelPermalink }}" {{ if eq .Language.Lang $currentLanguageCode }}selected{{ end }}>{{ .Language.LanguageName }}</option>
{{ end }}
</select>
</li>