in src/components/Menu/RepoActions/index.tsx [40:50]
function createEditLink(directoryPath) {
// hardcoded links for pages that exist in the directory as .../index.mdx
if (directoryPath === "/cli") directoryPath = "/cli/index";
if (directoryPath === "/cli/function") directoryPath = "/cli/function/index";
if (directoryPath === "/console") directoryPath = "/console/index";
const safePath = directoryPath
.split("/")
.map(encodeURIComponent)
.join("/");
return `https://github.com/aws-amplify/docs/edit/main/src/pages${safePath}.mdx`;
}