diff --git a/examples/embed.tsx b/examples/embed.tsx index 9bdad4332..1b3df9ed5 100644 --- a/examples/embed.tsx +++ b/examples/embed.tsx @@ -51,7 +51,7 @@ export function embed( ? to.substring(0, idx2) : to; let search = ~idx ? to.substring(idx, ~idx2 ? idx2 : undefined) : ''; - let hash = ~idx2 ? to.substring(idx2) : ''; + let hash = ~idx2 ? to.substring(idx2) : location.hash; if (!pathname) { pathname = location.pathname;