question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not omit hash on initial page load when using History API

See original GitHub issue

Hello! 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:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
trochcommented, Dec 10, 2016

Yep, it is a request I’ve had before, will look at it.

0reactions
trochcommented, Jun 16, 2017

That would make sense.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found