Skip to content

Commit

Permalink
Merge pull request #2870 from storybooks/urlsync-replace-state
Browse files Browse the repository at this point in the history
Fix browser navigation again
  • Loading branch information
Hypnosphi authored and shilman committed Feb 1, 2018
1 parent c880b9b commit 6773280
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/angular/src/client/preview/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function(context) {
selectedKind,
selectedStory,
});
window.history.pushState({}, '', `?${queryString}`);
window.history.replaceState({}, '', `?${queryString}`);
});

// Handle keyEvents and pass them to the parent.
Expand Down
2 changes: 1 addition & 1 deletion app/react/src/client/preview/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function(context) {
selectedKind,
selectedStory,
});
window.history.pushState({}, '', `?${queryString}`);
window.history.replaceState({}, '', `?${queryString}`);
});

// Handle keyEvents and pass them to the parent.
Expand Down
2 changes: 1 addition & 1 deletion app/vue/src/client/preview/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function(context) {
selectedKind,
selectedStory,
});
window.history.pushState({}, '', `?${queryString}`);
window.history.replaceState({}, '', `?${queryString}`);
});

// Handle keyEvents and pass them to the parent.
Expand Down

0 comments on commit 6773280

Please sign in to comment.