Skip to content

Commit 920853b

Browse files
committed
Try to fix editHref creation on build server
1 parent 84f1920 commit 920853b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/mdx-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let PROJECT_DIR = path.join(__dirname, "..")
1717
const EDIT_PREFIX = "https://github.com/reason-association/rescript-lang.org/blob/master/"
1818
function createEditHref(filepath) {
1919
let rel = path.relative(PROJECT_DIR, filepath);
20-
return path.join(EDIT_PREFIX, rel);
20+
return EDIT_PREFIX + rel;
2121
}
2222

2323
const loader = async function(raw) {

0 commit comments

Comments
 (0)