Skip to content

Commit

Permalink
馃悰 Fix link URL when fancy disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Jan 3, 2020
1 parent 88d9a3d commit b62b6af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@staart/site",
"version": "1.12.5",
"version": "1.12.6",
"module": "dist/module.js",
"main": "dist/index.js",
"bin": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.ts
Expand Up @@ -7,5 +7,5 @@ export const filePathtoUrl = async (path: string) => {
return `${config.baseUrl || ""}/${path
.replace("index.md", "")
.replace(".md", "")}`;
return path.replace(".md", ".html");
return "/" + path.replace(".md", ".html");
};

1 comment on commit b62b6af

@vercel
Copy link

@vercel vercel bot commented on b62b6af Jan 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.