Fix bad refresh request when URL has fragment
Fix bad refresh request when URL has fragment

After navigating to a specific header using a link in the TOC the
current URL would contain a fragment. This messed up the refresh check.

Marfisc/panserver