Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix: preserve query parameters in copied heading URLs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 9, 2026 at 16:40 UTC
9bfba58702ce96726af4ffb7bc52be764e7bee11
1 file changed
+1
-1
docs/components/heading.tsx
+1
-1
@@ -31,7 +31,7 @@ function HeadingAnchor({ id, children }: { id: string; children: React.ReactNode
31
32
const handleClick = (e: React.MouseEvent<HTMLAnchorElement>) => {
33
e.preventDefault();
34
- const url = `${window.location.origin}${window.location.pathname}#${id}`;
34
+ const url = `${window.location.origin}${window.location.pathname}${window.location.search}#${id}`;
35
window.history.replaceState(null, '', `#${id}`);
36
navigator.clipboard.writeText(url).then(() => {
37
setCopied(true);