Remove Markdown File Extension

When I select a page from Forestry.io, it puts in the whole path with the extension in the front matter.
For example:
listing_agent = "teams/my-file.md"

So when I do link it, it gives me a 404 because of the file extension. I went through several docs and no help. How can I remove the end of the file extension? I tried using strings.TrimRight but wondering if there is a cleaner way?