-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Error when pasting an attachment #28915
Comments
I would like to confirm this on our setup as well. Hit us when upgrading from Issues' and PR's image links suddenly ignore the root URL, which is a subpath in our case. Our A backup is present, but still, is it safe to downgrade to solve this temporarily? edit: Since as per documentation, a change in the last digit |
Don't really know if it's related. The comment content code is here: gitea/routers/web/repo/issue.go Lines 1620 to 1627 in 3084c99
And the change I did is here: So, nothing really changed to the path, both use |
Found it... This line converts |
Backport #28932 by @KN4CK3R Fixes #28915 Restores the old behaviour: https://github.com/go-gitea/gitea/pull/26745/files#diff-d78a9d361b1fddc12218e4dd42f42d39d6be1fda184041e06bb6fb30f0d94c59L96 Co-authored-by: KN4CK3R <[email protected]>
Automatically locked because of our CONTRIBUTING guidelines |
Description
In issues, when I paste a screenshot, the attachment does not appear:
But in the project view, I can see the image:
Looks like the URL in the image src does not contain the base URL (/gitea/ in my case):
Gitea Version
1.21.4 built with GNU Make 4.3, go1.21.5 : bindata, sqlite, sqlite_unlock_notify
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.30.2, Wire Protocol Version 2 Enabled
Operating System
debian 11
How are you running Gitea?
Installation from binary
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: