Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tag click redirection #184

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,13 @@ export const PostHeader = ({ post, morePosts }: Props) => {
{tags.length > 0 && (
<div className="mb-5 flex w-full flex-row flex-wrap justify-center md:mb-0">
{tags.map((tag) => (
<a
<Link
className="mb-2 mr-3 rounded-lg border bg-slate-100 px-2 py-1 text-base font-medium text-slate-700 hover:bg-slate-200 dark:border-slate-800 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700"
key={tag._id}
href={`tag/${tag.slug}?source=tags_bottom_blogs`}
href={`/tag/${tag.slug}?source=tags_bottom_blogs`}
>
<span>{tag.name}</span>
</a>
</Link>
))}
</div>
)}
Expand Down