Skip to content

Commit a8e9164

Browse files
committed
fix: update URL when copying url
1 parent c865fd2 commit a8e9164

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apify-docs-theme/src/theme/Heading/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default function Heading({ as: As, id, ...props }) {
4545
e.preventDefault();
4646
const url = new URL(window.location.href);
4747
url.hash = `#${id ?? ''}`;
48+
window.location.hash = `#${id ?? ''}`;
4849
await copyToClipboard(url.toString());
4950
};
5051

0 commit comments

Comments
 (0)