From cc133ea25056032cf43ce083b69d9592a0233e66 Mon Sep 17 00:00:00 2001 From: Zach Shilton <4624598+zchsh@users.noreply.github.com> Date: Wed, 24 Mar 2021 16:39:29 -0400 Subject: [PATCH] website: fix issue with .mdx in URL paths --- website/components/remote-plugin-docs/utils/resolve-nav-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/components/remote-plugin-docs/utils/resolve-nav-data.js b/website/components/remote-plugin-docs/utils/resolve-nav-data.js index f1a65647a..7bcd2b8fb 100644 --- a/website/components/remote-plugin-docs/utils/resolve-nav-data.js +++ b/website/components/remote-plugin-docs/utils/resolve-nav-data.js @@ -139,7 +139,7 @@ async function resolvePluginEntryDocs(pluginConfigEntry) { // Process into a NavLeaf, with a remoteFile attribute const dirs = path.dirname(filePath).split('/') const dirUrl = dirs.slice(2).join('/') - const basename = path.basename(filePath) + const basename = path.basename(filePath, path.extname(filePath)) // build urlPath // note that this will be prefixed to get to our final path const isIndexFile = basename === 'index'