I've got a document, foo.md, like this:
# Header One
This is a link to [section 2](#header-two)
# Header Two
And this is that section.
I'd expect the link to go to /foo/#header-two, but instead it's linking to /#header-two. I can work around it by making the link be [section 2](foo.md#header-two), but that's (a) clunky and (b) breaks if I rename the file.