Change template URLs to relative.

This commit is contained in:
2025-11-30 22:54:08 +05:30
parent ee156dd11b
commit 846d9329cd
2 changed files with 3 additions and 3 deletions

View File

@@ -71,13 +71,13 @@
{{ define "footer" }} {{ define "footer" }}
<nav class="nav"> <nav class="nav">
{{ if .Consts.EnableSubmissions }} {{ if .Consts.EnableSubmissions }}
<a href="{{ $.Consts.RootURL }}/submit">{{- .L.T "public.submitEntry" -}}</a> <a href="/submit">{{- .L.T "public.submitEntry" -}}</a>
{{ end }} {{ end }}
{{ if .Consts.EnableGlossary }} {{ if .Consts.EnableGlossary }}
{{ range $d := .Dicts }} {{ range $d := .Dicts }}
{{ $from := index $d 0}} {{ $from := index $d 0}}
{{ $to := index $d 1}} {{ $to := index $d 1}}
<a href="{{ $.Consts.RootURL }}/glossary/{{ $from.ID }}/{{ $to.ID }}/*" class="tab"> <a href="/glossary/{{ $from.ID }}/{{ $to.ID }}/*" class="tab">
{{ $.L.Ts "public.glossary" "lang" $from.Name }} {{ $.L.Ts "public.glossary" "lang" $from.Name }}
</a> </a>
{{ end }} {{ end }}

View File

@@ -6,7 +6,7 @@
{{ else }} {{ else }}
<ul class="noul words"> <ul class="noul words">
{{ range $i, $w := $g.Words }} {{ range $i, $w := $g.Words }}
<li><a href="{{ $.Consts.RootURL }}/dictionary/{{ UnicodeURL $g.FromLang }}/{{ UnicodeURL $g.ToLang }}/{{ UnicodeURL (index $w.Content 0) }}">{{ $w.Content | join ", " }}</a></li> <li><a href="/dictionary/{{ UnicodeURL $g.FromLang }}/{{ UnicodeURL $g.ToLang }}/{{ UnicodeURL (index $w.Content 0) }}">{{ $w.Content | join ", " }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}