#743·barba

When linking to pages with hashes, hash does not appear in final URL

Author: mattfordhamCreated Jul 24, 2024Updated Mar 9, 2026
Labelsbug@barba/core

What version are you using?

v2.10.0

What package are you using?

@barba/core

Describe your issue

When linking to pages with hashes (for example href="/contact#the-form" ) the page load/transition happens as expected, but the hash does not show in the URL (example "/contact"). Additionally, data.next.url.hash is undefined.

Behavior is as expected with version 2.9.7.