Skip to content

Commit

Permalink
fix(RSS-ECOMM-2_33): router component
Browse files Browse the repository at this point in the history
  • Loading branch information
stardustmeg authored May 3, 2024
1 parent 60d6052 commit 995c74e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/Router/model/RouterModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ class RouterModel {
}

public navigateTo(route: string): History {
if (this.pages.has(route)) {
window.location.pathname = route;
}

this.handleRequest(route);

const pathnameApp = window.location.pathname
Expand Down

0 comments on commit 995c74e

Please sign in to comment.