Hugo

.relLangURL is duplicating baseurl

When using .relLangURL for multilingual site, I run into this issue:

config.toml

baseurl = "domain.com/subdir"

[menu]
  [[menu.main]]
    url = "/"
  [[menu.main]]
    url = "/about/"
  [[Languages.fr.menu.main]]
    url  = "/"
  [[Languages.fr.menu.main]]
    url = "/about/"

partial.html

{{ range .Site.Menus.main }}
  {{ .URL | relLangURL }}
{{ end }}

results - both languages

domain.com/subdir/subdir/
domain.com/subdir/subdir/about/
domain.com/subdir/fr/subdir/
domain.com/subdir/fr/subdir/about/

expected - both languages

domain.com/subdir/
domain.com/subdir/about/
domain.com/subdir/fr/
domain.com/subdir/fr/about/

Any ideas?

1 Like

UPDATE for posterity: This was deemed as intended.