Skip to content

Commit

Permalink
fix reference to wrong index
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Oct 12, 2021
1 parent d7b4181 commit d01e2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/client/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class Router {
const i1 = url_string.indexOf('#');
const i2 = location.href.indexOf('#');
const u1 = i1 >= 0 ? url_string.substring(0, i1) : url_string;
const u2 = i2 >= 0 ? location.href.substring(0, i1) : location.href;
const u2 = i2 >= 0 ? location.href.substring(0, i2) : location.href;
history.pushState({}, '', url.href);
if (u1 === u2) {
window.dispatchEvent(new HashChangeEvent('hashchange'));
Expand Down

0 comments on commit d01e2df

Please sign in to comment.