diff --git a/apify-docs-theme/src/theme/Layout/index.jsx b/apify-docs-theme/src/theme/Layout/index.jsx index 621336935..b5f4d60b4 100644 --- a/apify-docs-theme/src/theme/Layout/index.jsx +++ b/apify-docs-theme/src/theme/Layout/index.jsx @@ -6,20 +6,20 @@ import useBaseUrl from '@docusaurus/useBaseUrl'; import { usePluginData } from '@docusaurus/useGlobalData'; import React from 'react'; -import { absoluteUrl } from '../../absoluteUrl'; - export default function LayoutWrapper(props) { const { options: { subNavbar } } = usePluginData('@apify/docs-theme'); const baseUrl = useBaseUrl('/'); const currentPath = useLocation().pathname.replace(new RegExp(`^${baseUrl}`), '').trim(); const shouldRenderAlternateLink = currentPath && currentPath !== '404'; + const alternateMarkdownLink = useBaseUrl(`/${currentPath}.md`, { absolute: true }); + return ( <>
{ shouldRenderAlternateLink - ? + ? : null }