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

Fixes #5230 - Hash parameters get stripped from the url when used in an
anchor