Skip to content

Pasted images have wrong repo-based URL #15550

Closed
@silverwind

Description

@silverwind

Description

Pasting an image results in it being linked on the wrong URL:

https://try.gitea.io/silverwind/symlink-test/attachments/265b512e-f7a7-46a0-922c-7afe1bc0f530

But it should be

https://try.gitea.io/attachments/265b512e-f7a7-46a0-922c-7afe1bc0f530

Markdown and HTML:

![image](/attachments/265b512e-f7a7-46a0-922c-7afe1bc0f530)
<a href="/silverwind/symlink-test/attachments/265b512e-f7a7-46a0-922c-7afe1bc0f530" rel="nofollow"><img src="/silverwind/symlink-test/attachments/265b512e-f7a7-46a0-922c-7afe1bc0f530" alt="image"></a>

Image attachments via dropzone are not affected, see comment below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions