Navigation: Preserves hash parameters so a page can be bookmarked.

Fixes #5230 - Hash parameters get stripped from the url when used in an anchor

It's a small 2 line fix to preserve hash parameters so a page can be bookmarked or reloaded.