Skip to content

Commit

Permalink
fix: go back button after changing tabs (#2896)
Browse files Browse the repository at this point in the history
* fix: go back button

* Revert "fix: go back button"

This reverts commit 408266a.

* replace strategy
  • Loading branch information
Paul-Bob authored Jun 27, 2024
1 parent 31e277f commit 8436b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/js/controllers/tabs_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class extends Controller {

const u = new URL(window.location)
u.searchParams.set(this.groupParam(groupId), encodeURIComponent(tabName))
window.history.replaceState(null, '', u.pathname + u.search)
window.Turbo.navigator.history.replace({ href: u.pathname + u.search })

window.Avo.localStorage.set(key, tabName)

Expand Down

0 comments on commit 8436b09

Please sign in to comment.