Do not omit hash on initial page load when using History API
See original GitHub issueHello! With the browser plugin enabled, and when it’s useHash
option is set to false
IMO router should not omit the hash part of the url on initial page load. Now it is impossible to reload a page with the hash in the url - hash gets removed on reload.
It happens here, I believe - https://github.com/router5/router5/blob/master/modules/plugins/browser/browser.js#L31 Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
How to remove the hash from window.location (URL) with ...
The right answer on how to do it without sacrificing (either full reload or leaving the hash sign there) is up here. Leaving...
Read more >Working with the History API - MDN Web Docs
You can associate arbitrary data with your new history entry. With the hash-based approach, you need to encode all of the relevant data...
Read more >How to remove hash from window.location with JavaScript ...
To remove the hash URL, you can use the replaceState method on the history API to remove the hash location. Example: HTML.
Read more >Using the HTML5 History API | CSS-Tricks
The HTML5 History API gives developers the ability to modify a website's URL without a full page refresh. This is particularly useful for ......
Read more >Pushing and Popping with the History API - HTML5 Doctor
As the server does not receive the path following the hashbang, ... This is because Chrome considers the initial page load to be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep, it is a request I’ve had before, will look at it.
That would make sense.