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

Is it still necessary reading hash from href now? #726

Closed
Tan90Qian opened this issue Aug 10, 2019 · 3 comments · Fixed by #751
Closed

Is it still necessary reading hash from href now? #726

Tan90Qian opened this issue Aug 10, 2019 · 3 comments · Fixed by #751
Labels

Comments

@Tan90Qian
Copy link

In the createHashHistory.js, there is a comment inner getHashPath()

 // We can't use window.location.hash here because it's not
 // consistent across browsers - Firefox will pre-decode it!

But in the next function pushHashPath, it set hash directly.

function pushHashPath(path) {
  window.location.hash = path;
}

I found the problem of pre-dcode location.hash happened about 6 years ago, and the recent version of firefox is working ok.

@mjackson
Copy link
Member

It may have changed in recent versions of Firefox, but we still support Firefox >= 43. We can remove that code and bump our supported Firefox version, but it will require a major release.

@StringEpsilon
Copy link

Bumping browsers up in that list should definetly be on the agenda for the next major version.

IE 10 isn't even supported by Microsoft anymore. And the current firefox long term support is version 60.

@mjackson mjackson added the other label Aug 27, 2019
mjackson added a commit that referenced this issue Nov 5, 2019
New features:
- Remove legacy browser support (pre pushState)
- Add state to hash history
- Use custom window when creating history objects
- Better history.block API (wip)
- Fix location.pathname encoding issues
- About 50% smaller
- No dependencies

Removed features:
- Removes basename support
- Removes getUserConfirmation
- Removes keyLength
- Removes hashType
- Removes relative pathname support in hash + memory histories

Still TBD:
- Missing pathname support in push/replace

Fixes #624
Fixes #704
Fixes #723
Fixes #726
@mjackson mjackson mentioned this issue Nov 5, 2019
Merged
@mjackson
Copy link
Member

mjackson commented Nov 8, 2019

Heads up: we are no longer doing this in the v5 beta released earlier today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants