Wikis custom sidebar page linking

Hey all!
I’m having trouble with links in a custom _Sidebar.md file using Github wikis.
I’ve got 1 markdown file with lots of headers. I’d like those headers to appear separately in my custom sidebar file, which I’ve done. However, the links to those headers ((https://github.com/username/repo/wiki/page_name#header-name) are not working. They just take me to the top of the page_name file.
Here’s an example of part of my page_name file:

# header-name

## **subheading** 
> entry under this subheading
(more subheadings would go here)


# header-name-2

## **another-subheading** 
> entry under this subheading
(more subheadings would go here)

And here’s an example of my _Sidebar.md file

## [header-name](https://github.com/username/repo-name/wiki/page_name#header-name)
## [header-name-2](https://github.com/username/repo-name/wiki/page_name#header-name-2)