Skip to content

Commit

Permalink
fix: baseUrl duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
OzakIOne committed Aug 23, 2024
1 parent c9d04f7 commit 4f0214f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-blog/src/authors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function normalizeImageUrl({
imageURL: string | undefined;
baseUrl: string;
}) {
return imageURL?.startsWith('/')
return imageURL?.startsWith('/') && !imageURL.startsWith(baseUrl)
? normalizeUrl([baseUrl, imageURL])
: imageURL;
}
Expand Down
1 change: 0 additions & 1 deletion packages/docusaurus-plugin-content-blog/src/authorsMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ function normalizeAuthor({
permalink: normalizeUrl([authorsBaseRoutePath, slug]),
};
}
console.log('baseUrl:', baseUrl);

return {
...author,
Expand Down

0 comments on commit 4f0214f

Please sign in to comment.