Don't include intra-page navigation in history

Fixes #2829