Merge pull request #149 from LongLiveCHIEF/148-fix-navigation-links-incompatible-with-relative-urls
use absLangUrl instead of relLangUrl for navigation links
This commit is contained in:
commit
67e387b354
1 changed files with 3 additions and 3 deletions
|
@ -30,13 +30,13 @@
|
|||
</a>
|
||||
<div class="dropdown-menu">
|
||||
{{ range .Children }}
|
||||
<a class="dropdown-item" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
|
||||
<a class="dropdown-item" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
|
||||
<a class="nav-link text-dark" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -65,4 +65,4 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</nav>
|
||||
|
|
Loading…
Reference in a new issue