nikola
nikola copied to clipboard
Navigation-Link to /#some-anchor resolves wrong
Environment
Nikola v8.2.3
Description:
When defining
NAVIGATION_LINKS = {
DEFAULT_LANG: (
("/", "Home"),
("/#some-anchor", "Subsection"),
),
}
this link for “Subsection“ is resolved wrong for sibling pages of /index.html.
- Correct:
/index.html:href="#some-anchor" - Wrong:
/other-page.html:href="#some-anchor"— leading slash is missing - Correct:
/dir/page.html:href="/#some-anchor"— leading slash is here
I tried different work-arounds, like /./#some-anchor without success.
Hello @htgoebel Please label this task for Hacktoberfest and assign it to me. Thank you.
@sudhir512kj We do not condone Hacktoberfest due to persistent spam in the previous years and will not add a Hacktoberfest label. We welcome your contribution though!