docs: fix some index.html.md links resulting 404 (#11379)
This commit is contained in:
@@ -9,7 +9,9 @@ export const changeLinksToHtmlMdPlugin = (): Transformer => {
|
||||
if (
|
||||
node.type === "link" &&
|
||||
node.url?.startsWith("https://docs.medusajs.com") &&
|
||||
!node.url.endsWith("index.html.md")
|
||||
!node.url.endsWith("index.html.md") &&
|
||||
!node.url.includes("/api/store") &&
|
||||
!node.url.includes("/api/admin")
|
||||
) {
|
||||
node.url += `/index.html.md`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user