@burdenoff/website-sdk 2026.829.7 → 2026.829.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -7772,14 +7772,17 @@ function ExplorePage({
7772
7772
  setTimeout(() => setShareLabel("Share"), 2500);
7773
7773
  return;
7774
7774
  }
7775
- const base = (pageUrl ?? window.location.href).split("?")[0];
7776
- const url = `${base}?c=${encodeURIComponent(token)}`;
7775
+ const url = new URL(pageUrl ?? window.location.href);
7776
+ url.search = "";
7777
+ url.hash = "";
7778
+ url.searchParams.set("c", token);
7779
+ const shareable = url.toString();
7777
7780
  try {
7778
- await navigator.clipboard.writeText(url);
7781
+ await navigator.clipboard.writeText(shareable);
7779
7782
  setShareLabel("Copied");
7780
7783
  setTimeout(() => setShareLabel("Share"), 2500);
7781
7784
  } catch {
7782
- setShareUrl(url);
7785
+ setShareUrl(shareable);
7783
7786
  setShareLabel("Share");
7784
7787
  }
7785
7788
  }, [createShareLink, pageUrl]);