We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff363eb commit e49fe5bCopy full SHA for e49fe5b
packages/kit/src/runtime/client/router.js
@@ -188,7 +188,7 @@ export class Router {
188
// This will ensure the `hashchange` event is fired
189
// Removing the hash does a full page navigation in the browser, so make sure a hash is present
190
const [base, hash] = url.href.split('#');
191
- if (hash && base === location.href.split('#')[0]) {
+ if (hash !== undefined && base === location.href.split('#')[0]) {
192
// Call `pushState` to add url to history so going back works.
193
// Also make a delay, otherwise the browser default behaviour would not kick in
194
setTimeout(() => history.pushState({}, '', url.href));
0 commit comments