Hello, I’ve encountered an issue while working with HUGO in a multilingual setup. My objective is to create a link to the About page from both the main index.en.md
and index.cs.md
files in the following directory structure:
.
└── content
├── about
| ├── index.en.md <--- I want to link this
| └── index.cs.md
├── index.en.md <--- I am here
└── index.cs.md
However, when I attempt to link to the page using either [about me]({{< ref "/about" >}})
or [about me]({{< ref "/about/index.en.md" >}})
, I encounter the following error:
[en] REF_NOT_FOUND: Ref "/about": "/home/luketeam5/Desktop/personal (copy)/content/index.en.md:4:12": page not found
Rebuild failed:
Logged 1 error(s)
The only workaround I’ve found is to add an empty index.md
file to the destination. This allows the link to work correctly, but it’s admittedly an inconvenient solution:
.
└── content
├── about
| ├── index.md <--- Dummy index.md
| ├── index.en.md <--- I want to link this
| └── index.cs.md
├── index.en.md <--- I am here
└── index.cs.md
Technical details of my setup
$ hugo env
=>
hugo v0.92.2+extended linux/amd64 BuildDate=2023-01-31T11:11:57Z VendorInfo=ubuntu:0.92.2-1ubuntu0.1
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.18.1"
Theme I use => The amazing hello-friend NG
I appreciate any help or advice you can offer. Thank you for your time!