Skip to content

Commit 6afb437

Browse files
authored
Merge pull request #12091 from ethereum/staging
Staging -> dev
2 parents 3c8869a + 6c9e8ff commit 6afb437

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/utils/editPath.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { join } from 'path'
1+
import { join } from "path"
22

3-
import { CONTENT_DIR, EDIT_CONTENT_URL } from '@/lib/constants'
3+
import { CONTENT_DIR, EDIT_CONTENT_URL } from "@/lib/constants"
44

5-
export const getEditPath = (relativePath: string): string => join(EDIT_CONTENT_URL, CONTENT_DIR, relativePath, "index.md")
5+
export const getEditPath = (relativePath: string): string =>
6+
new URL(join(CONTENT_DIR, relativePath, "index.md"), EDIT_CONTENT_URL).href

0 commit comments

Comments
 (0)