diff --git a/app/angular/src/client/preview/init.js b/app/angular/src/client/preview/init.js index 11e470afd4c4..e4028a7805cc 100644 --- a/app/angular/src/client/preview/init.js +++ b/app/angular/src/client/preview/init.js @@ -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. diff --git a/app/react/src/client/preview/init.js b/app/react/src/client/preview/init.js index 11e470afd4c4..e4028a7805cc 100644 --- a/app/react/src/client/preview/init.js +++ b/app/react/src/client/preview/init.js @@ -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. diff --git a/app/vue/src/client/preview/init.js b/app/vue/src/client/preview/init.js index 11e470afd4c4..e4028a7805cc 100644 --- a/app/vue/src/client/preview/init.js +++ b/app/vue/src/client/preview/init.js @@ -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.