-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Blog authors page is not using baseUrl when rendering a relative author.image_url #10434
Comments
@laliconfigcat can you please be more concrete and provide an actual example/repro? We have a PR fix (#10440) but since the bug is quite abstract we are not 100% sure it will fix your case.
Thanks For now the PR assumes your author image is probably in |
Hello @slorber , Thanks for getting back to me. I created a small repro app following these steps: If you open a blog post, or if you open the blog main page, the author images will be fine (the image url is /baseUrl/img/docusaurus.png), but if you click on the author direct page or the author listing page, the image will not be shown (the url is /img/docusaurus.png). I tried it with ./img/docusaurus.png too in the authors.yml, but it didn't compile that way. My images are in the static folder, so I hope the PR will solve my problem too. You can find the repro app here: https://github.com/laliconfigcat/author-repro. |
I see thanks The problem is adding something like this to slorber:
name: Sébastien Lorber
image_url: /img/docusaurus.png The PR will fix it yes |
Many thanks for the fix! I'm looking forward to it, as the new features are awesome! |
thanks @laliconfigcat You can already use a canary version, it's relatively safe to adopt in production, it's just v3.5 with a few extra well-tested commits. Otherwise I don't plan to release v3.6 until I merge this one but it's going to take a few more weeks: #10402 |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.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: #9577).
Reproducible demo
No response
Steps to reproduce
Expected behavior
The images associated with authors to be rendered correctly.
Actual behavior
The images associated with authors are not rendered correctly.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: