Skip to content

Images in readme have crate name incorrectly injected into URL #9886

@michaelvlach

Description

@michaelvlach

Current Behavior

E.g.

https://crates.io/crates/agdb

Images in any of the following forms:

<img width="100" src="./agdb_web/public/images/db.png"
<img width="100" src="/agdb_web/public/images/db.png"
<img width="100" src="agdb_web/public/images/db.png"

Will result in incorrect URL:

https://github.com/agnesoft/agdb/raw/HEAD/agdb/agdb_web/public/images/db.png

The name of the crate is wrongly inserted after the HEAD part.

Expected Behavior

The URL does not have the crate name injected after HEAD part.

Steps To Reproduce

  1. Go to https://crates.io/crates/agdb
  2. Inspect any element of the images not being found.
  3. See incorrect URL.

Environment

  • Browser: any
  • OS: any

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions