-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
I have tried using relref to generate links to other parts of the site. In my case the generated links are broken, consider the following example:
~$: tree content/
content/
├── teleport
│ ├── admin-guide.md
│ ├── architecture.md
│ ├── faq.md
│ ├── quickstart.md
│ └── user-manual.md
├── teleport.md
Inside of teleport/quickstart.md I have a link declaration:
{{< relref "faq.md" >}}
And it generates /teleport/faq. I expect it to generate simply faq because the rendered page is already under /teleport. So the generated link is not relative at all, it's an absolute URL without a hostname.
Problem
This is a problem because such a page won't work if the generated HTML will be "mounted" into another subsection of a larger website, say /projects/teleport.
In fact, it doesn't even work in "pure Hugo" situations when you have two faq.md files in content/a/faq.md and content/b/faq.md - it will always produce to /a/faq for some reason