We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e79818 commit 10f300bCopy full SHA for 10f300b
src/components/Library/Library.tsx
@@ -119,9 +119,11 @@ export const Library: React.FC<Props> = ({lib}) => {
119
return link;
120
}
121
122
- const githubRepoUrl = `${GITHUB_URL}${githubId}/blob/main/`;
123
- const absoluteUrl = new URL(link, githubRepoUrl);
124
- return absoluteUrl.toString();
+ const githubRepoUrl = `${GITHUB_URL}${githubId}/blob/main/${
+ link && link.startsWith('/') ? link.slice(1) : link
+ }`;
125
+
126
+ return githubRepoUrl;
127
},
128
[lib.config?.githubId],
129
);
0 commit comments