I have my blog generated via Hugo. It is a Multilingual site with two languages available, English (en) and Bengali (bn).
I have my English posts in content/posts directory and Bengali posts at content/bengali/posts; And as usual my posts have standard metadata such as title, lang, description etc.
By default, Bengali posts get generated at URLs sometime like domain.tld/bn/post1. But they are also available at domain.tld/bn/bengali/posts/post1
For this issue, my Related Posts and Next/Previous Post getting filled with duplicate posts of different links of a same post.
My theme is created by me from scratch.
- Here is my source code of my site → https://gitlab.com/bauripalash/bauripalash.gitlab.io
- Theme source → https://gitlab.com/bauripalash/bauripalash.gitlab.io/-/tree/main/themes/x
- Website Link →
https://palashbauri.in
A demo Bengali post with the aforementioned problem, so you folks can check this issue:
-
https://palashbauri.in/bn/aami-depression-e-akranto/ -
https://palashbauri.in/bn/bengali/posts/aami-depression-e-akranto/>