Here is my code:
If you navigate to www.example.com/page.html#example-name1 without having loaded the page first it will show the whole page and not the requested content.
However if you navigate to the link once the page has loaded it will work and show the desired content.
This is very odd. Does anybody have a fix for this?