Skip to content

fix: author is added in _fields for the blog slug - #613

Open
anurag-p6 wants to merge 1 commit into
containers:mainfrom
anurag-p6:fix/blog_author
Open

fix: author is added in _fields for the blog slug#613
anurag-p6 wants to merge 1 commit into
containers:mainfrom
anurag-p6:fix/blog_author

Conversation

@anurag-p6

Copy link
Copy Markdown

Concisely describe the change

Fixes #612

In src/pages/index.tsx (line 56) and src/pages/features.tsx (line 180), add author to the _fields query parameter:
_fields=id, author, author_info, title, wbDate, jetpack_featured_media_url, link, excerpt
Tested against the API without author in _fields, the response returns author_link: "https://blog.podman.io/author/". With it included, the correct slug is returned e.g. "https://blog.podman.io/author/mloriedo/".

Before screenshot / screen recording

2026-08-01.02-10-44.-.Trim.mp4

After screenshot / screen recording

2026-08-01.02-20-06.-.Trim.mp4
image

Checklist

Ensure you have completed the following checklist for your pull request to be reviewed:

  • Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by signing all
    commits. (git commit -s). (If needed, use git commit -s --amend). The author email must match
    the sign-off email address. See CONTRIBUTING.md
    for more information.
  • Referenced issues using Fixes: #00000 in commit message (if applicable)
  • PR description, commit message, and GitHub comments are human-written, per LLM Policy

Signed-off-by: Anurag Pandey <pandeyanurag3359@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Author name on blog cards doesn't redirect to the author page

1 participant