diff --git a/lib/preview-web/src/UrlStore.ts b/lib/preview-web/src/UrlStore.ts index 86437da74e88..0f930edf66fc 100644 --- a/lib/preview-web/src/UrlStore.ts +++ b/lib/preview-web/src/UrlStore.ts @@ -42,6 +42,7 @@ export const setPath = (selection?: Selection) => { if (!selection) return; const query = getQueryString({ selection }); const { hash = '' } = document.location; + document.title = selection.storyId; history.replaceState({}, '', `${document.location.pathname}${query}${hash}`); };