diff --git a/apify-docs-theme/src/theme/MDXComponents/A.js b/apify-docs-theme/src/theme/MDXComponents/A.js index 575d08f3a..6db5f18fd 100644 --- a/apify-docs-theme/src/theme/MDXComponents/A.js +++ b/apify-docs-theme/src/theme/MDXComponents/A.js @@ -8,7 +8,7 @@ export default function MDXA(props) { const { siteConfig } = useDocusaurusContext(); if (props.href?.startsWith(siteConfig.url)) { - props.target = '_self'; + props = { ...props, target: '_self' }; } // absolute links in README, e.g. in the SDK or API Client docs, need to be converted to local `to` links