docusaurus icon indicating copy to clipboard operation
docusaurus copied to clipboard

Blog authors page is not using baseUrl when rendering a relative author.image_url

Open laliconfigcat opened this issue 6 months ago • 0 comments

Have you read the Contributing Guidelines on issues?

Prerequisites

  • [X] I'm using the latest version of Docusaurus.
  • [ ] I have tried the npm run clear or yarn clear command.
  • [ ] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • [ ] I have tried creating a repro with https://new.docusaurus.io.
  • [ ] I have read the console error message carefully (if applicable).

Description

It seems to me that author.image_url is not prepended with the baseUrl so the images are not shown correctly for relative images. In the blog posts the relative image url is working (I think it was fixed with this issue: https://github.com/facebook/docusaurus/issues/9577). image image

Reproducible demo

No response

Steps to reproduce

  1. create a site with baseUrl
  2. add an author with relative image_url
  3. check the generated code for the image on the authors page and on the dedicated author pages.

Expected behavior

The images associated with authors to be rendered correctly.

Actual behavior

The images associated with authors are not rendered correctly.

Your environment

  • Public source code:
  • Public site URL:
  • Docusaurus version used:
  • Environment name and version (e.g. Chrome 89, Node.js 16.4):
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

  • [ ] I'd be willing to fix this bug myself.

laliconfigcat avatar Aug 22 '24 15:08 laliconfigcat