docusaurus
docusaurus copied to clipboard
Blog authors page is not using baseUrl when rendering a relative author.image_url
Have you read the Contributing Guidelines on issues?
- [X] I have read the Contributing Guidelines on issues.
Prerequisites
- [X] I'm using the latest version of Docusaurus.
- [ ] I have tried the
npm run clear
oryarn 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).
Reproducible demo
No response
Steps to reproduce
- create a site with baseUrl
- add an author with relative image_url
- 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.