Skip to content

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

@laliconfigcat

Description

@laliconfigcat

Have you read the Contributing Guidelines on issues?

Prerequisites

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).
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions