Hello everybody,
I’m a Hugo newbie and first I wanna thank Hugo contributors. It’s a great tool !
I’m using the
- v0.37.1 Hugo engine
- beautifulhugo theme
I just began to create a blog in multilingual mode.
The default language is french and the two other languages are english and german.
Everything works fine but I just have a problem with “View all” links in the self generated page “tags” and only for english and german languages.
When I click on the french “View All” link, it works and it displays the right content. In this case my link is http://localhost:1313/tags/cms/
When I click on the english or th german “View All” link I have a 404 page which is quite normal because links don’t exist. In this case, my english link is http://localhost:1313/entags/cms/ (detags for german)
It seems there is a missing “/” between the language code and “tags”.
I don’t understand why.
Could somebody explain me the root cause ?
Thank you, very much.
Sorry, my config.toml is the following
theme = “beautifulhugo”
DefaultContentLanguage = “fr”
enableRobotsTXT = true
canonifyURLs = true
[params]
logo = “/img/avatar-icon.png”
readingTime = true
comments = true
[taxonomies]
tag = “tags”
[permalinks]
post = “/:year/:month/:title/”
[languages]
[languages.fr]
weight = 1
languageName = “Français”
[[languages.fr.menu.main]]
name = “Accueil”
url = “/”
weight = 1
[[languages.fr.menu.main]]
name = “Tags”
url = “/tags”
weight = 2
[[languages.fr.menu.main]]
name = “À propos de moi”
url = “/page/about”
weight = 3
####################
[languages.en]
weight = 2
languageName = “English”
subtitle = “A developer’s blog”
[[languages.en.menu.main]]
name = “Home”
url = “/”
weight = 1
[[languages.en.menu.main]]
name = “Tags”
url = “/tags”
weight = 2
[[languages.en.menu.main]]
name = “About me”
url = “/page/about”
weight = 3
####################
[languages.de]
weight = 3
languageName = “Deutsch”
subtitle = “Ein Blog eines Entwicklers”
[[languages.de.menu.main]]
name = “Startseite”
url = “/”
weight = 1
[[languages.de.menu.main]]
name = “Tags”
url = “/tags”
weight = 2
[[languages.de.menu.main]]
name = “Über mich”
url = “/page/about”
weight = 3
Looks like that issue is already reported on the theme repo, and someone also suggested a “fix”:
IMO, the behavior of absURL
has bothered me too… I wish it auto-suffixed the URL with /
if absent, especially if uglyURLs
is disabled.
1 Like
Hi !
Thank you very much. I did not see this post. It works fine.
Great!
Though, also see my suggested fix that I later posted in that thread:
I finally applied your last fix.
Tx.