Open file locally respects frontmatter (#24615)

This commit is contained in:
Hamish Willee 2025-03-27 14:32:28 +11:00 committed by GitHub
parent 82a482ec0b
commit 4710366862
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,11 @@ export default defineConfig({
: (c) =>
`${
window.location.origin
}/__open-in-editor?file=${encodeURIComponent(c.filePath)}`,
}/__open-in-editor?file=${encodeURIComponent(
c.frontmatter.newEditLink
? c.frontmatter.newEditLink
: c.filePath
)}`,
},
},
},