Fix navigator's internal behaviour on anchor-only links.
Do not change browser's address line on links with href="#".