Skip to content

markdown image links are wrong if repo is called 'src' #26548

Closed
@rmie

Description

@rmie

Description

Ack, this is an edge case.

We have a repo called src, and amazingly all links to images in markdown are wrong (404).

for example:

document: https://host/org/src/src/commit/...
actual img src: https://host/org/media/src/commit/...
expected img src: https://host/org/src/media/commit/...

It looks like the the first, instead of the second. occurrence of "src" is replaced by "media".

try.gitea.io

suspected location

Gitea Version

1.19.3

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

None

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions