Skip to content

Commit

Permalink
Push state URL to Turbo navigator history #125
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu authored Nov 22, 2024
1 parent 77340b0 commit 102a326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/controllers/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default class extends Controller {

if (url.toString() !== window.location.href) {
window.history.replaceState(null, null, url);
Turbo.navigator.history.push(url);
}
}

Expand Down

0 comments on commit 102a326

Please sign in to comment.