Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mattfordham opened this issue Jul 24, 2024 · 2 comments
Open
Labels
@barba/core @barba/core plugin bug bug to fix

Comments

@mattfordham
Copy link

mattfordham commented Jul 24, 2024

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.

@mattfordham mattfordham added the bug bug to fix label Jul 24, 2024
@xavierfoucrier xavierfoucrier added the @barba/core @barba/core plugin label Jul 25, 2024
@xavierfoucrier
Copy link
Member

Hi @mattfordham 👋

Thanks for opening an issue.
As discussed together on Slack, this looks like a bug, let's investigate!

@Gawel91
Copy link

Gawel91 commented Aug 21, 2024

I also had this issue, downgrading to 2.9.7 resolved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@barba/core @barba/core plugin bug bug to fix
Projects
None yet
Development

No branches or pull requests

3 participants