Skip to content

Commit 2b8013f

Browse files
authored
Merge pull request #6004 from layer5io/patch-2343
fix author slug
2 parents 1cbb6cd + cca11fc commit 2b8013f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/sections/Blog/Blog-single/author.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const AboutTheAuthor = (props) => {
1919
<div className="authors-info-container">
2020
<h3>About the Author</h3>
2121
<div className="authors-head-shot">
22-
<Link to={`/community/members/${authorInformation.slug}`}>
22+
<Link to={`${authorInformation?.fields?.slug}`}>
2323
<Image {...authorInformation?.frontmatter?.image_path} imgStyle={{ objectFit: "cover" }} alt={authorInformation.frontmatter?.name} className="authors-image" />
2424
</Link>
2525
</div>

src/sections/Blog/Blog-single/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ const BlogSingle = ({ data }) => {
7373
publicURL
7474
}
7575
}
76+
fields {
77+
slug
78+
}
7679
7780
}
7881
}

0 commit comments

Comments
 (0)