Skip to content

Commit

Permalink
re-use the hash variable already declared
Browse files Browse the repository at this point in the history
  • Loading branch information
joetannenbaum committed Sep 18, 2024
1 parent 0299891 commit 8f46701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class Router {
protected handleInitialPageVisit(page: Page): void {
const hash = window.location.hash
if (!this.page.url.includes(hash)) {
this.page.url += window.location.hash
this.page.url += hash
}
this.setPage(page, { preserveState: true }).then(() => fireNavigateEvent(page))
}
Expand Down

0 comments on commit 8f46701

Please sign in to comment.