From f7fd4bb496dcb2a2bb8b5cc8283ea3fae9610f97 Mon Sep 17 00:00:00 2001 From: Serim Min <97885933+anonymousRecords@users.noreply.github.com> Date: Wed, 25 Sep 2024 03:00:00 +0900 Subject: [PATCH] fix: update document edit page links (#2320) * refactor: Update getDocFilePathToGithub function in links.ts * chore: prettify --------- Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com> --- docs/app/helpers/links.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/app/helpers/links.ts b/docs/app/helpers/links.ts index e883ceb2d1..6ac9fb84c2 100644 --- a/docs/app/helpers/links.ts +++ b/docs/app/helpers/links.ts @@ -13,7 +13,7 @@ export const getDocFilePathToGithub = (item?: FlattenedNavigation): string => { if (!filePath) { filePath = '_index' } else { - filePath = filePath.split('.').join('') + filePath = filePath.replace(/\//g, '.') } if (item.hasChildren) {