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

Hash in url #17

Open
wolszczc opened this issue Jul 2, 2020 · 0 comments
Open

Hash in url #17

wolszczc opened this issue Jul 2, 2020 · 0 comments

Comments

@wolszczc
Copy link

wolszczc commented Jul 2, 2020

I create auto-scroll based on anchor and hash in url and the problem is when I first time came on the page, the hash is ignored and I can't use it.
image

Second case is when I use spa routing, hash is existed but is saved as a param
image

The third case is when I use hash and params, hash is ignored (first-time page load) (a)
image

Spa navigation (b)
image

What do I suggest?

  • create a new key with a hash
  • fix problem with first-load missing hash
  • separate hash and params from params object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant