getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.62k stars 449 forks source link

Navigation-Link to /#some-anchor resolves wrong #3646

Open htgoebel opened 2 years ago

htgoebel commented 2 years ago

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.

I tried different work-arounds, like /./#some-anchor without success.

sudhir512kj commented 2 years ago

Hello @htgoebel Please label this task for Hacktoberfest and assign it to me. Thank you.

Kwpolska commented 2 years ago

@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!