Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jan 12, 2022
1 parent 3f3d1a4 commit 331036d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/kit/src/runtime/client/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ export class Router {
throw new Error('Attempted to navigate to a URL that does not belong to this app');
}

if (method) history[method](state, '', info.url);

if (!this.navigating) {
dispatchEvent(new CustomEvent('sveltekit:navigation-start'));
}
Expand All @@ -287,6 +285,7 @@ export class Router {
}

info.url = new URL(url.origin + pathname + url.search + url.hash);
if (method) history[method](state, '', info.url);

await this.renderer.handle_navigation(info, chain, false, { hash, scroll, keepfocus });

Expand Down

0 comments on commit 331036d

Please sign in to comment.