You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When migrating a repository from GitHub to Gitea. Links to an image in the README of the main branch that reference an image located on another branch don't link correctly on Gitea.
...eb/routing/logger.go:102:func1() [I] router: completed GET /REDACTED/master for REDACTED, 200 OK in 71.8ms @ repo/view.go:710(repo.Home)
...eb/routing/logger.go:102:func1() [I] router: completed GET /screenshots/alucard/fakebusy.png for REDACTED, 404 Not Found in 1.5ms @ web/goget.go:20(web.goGet)
...eb/routing/logger.go:102:func1() [I] router: completed GET /screenshots/alucard/desktop.png for REDACTED, 404 Not Found in 1.6ms @ web/goget.go:20(web.goGet)
...eb/routing/logger.go:102:func1() [I] router: completed GET /screenshots/alucard/rofi.png for REDACTED, 404 Not Found in 1.7ms @ web/goget.go:20(web.goGet)
...eb/routing/logger.go:102:func1() [I] router: completed GET /screenshots/alucard/tiling.png for REDACTED, 404 Not Found in 1.8ms @ web/goget.go:20(web.goGet)
I was also able to reproduce the error, but when I use the tags in markdown, I am able to see the image displayed normally. ![img](/../screenshots/alucard/desktop.png)
At the moment I would say Github is weird in this case.
The readme file contains <img src="/../screenshots/alucard/fakebusy.png" width="100%" />
Github renders the final link as <img src="/hlissner/dotfiles/raw/screenshots/alucard/fakebusy.png" />
They use /<owner>/<repo>/raw/<branch>
as base url.
If you "add" the absolute path /../screenshots/alucard/fakebusy.png
to /hlissner/dotfiles/raw/main
the result is /screenshots/alucard/fakebusy.png
I would understand what they are doing if the image would be the relative path ../screenshots/alucard/fakebusy.png (the missing first slash)
The .. removes main from the path and appends screenshots/alucard/fakebusy.png
Description
When migrating a repository from GitHub to Gitea. Links to an image in the README of the main branch that reference an image located on another branch don't link correctly on Gitea.
For Example: https://github.com/hlissner/dotfiles references images in the README that are located on the screenshots branch. After the migration they don't render correctly on the Gitea repository. See https://try.gitea.io/oonguphuu5og3OovishooVie/master.
The failures in the log during the migration:
Gitea Version
1.20.0+rc2
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
Try Gitea version
Operating System
Docker
How are you running Gitea?
https://try.gitea.io/ and Docker version
Database
SQLite
The text was updated successfully, but these errors were encountered: