-
-
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
Relative image paths in readmes are incorrect #10412
Comments
The issues is that the relative link resolves to |
You are right. So it does not work either way. |
In fact you should not be using the Now if you want to link to an image the simplest thing is to use the That being said we can do something better with detecting image links. So we should really make these links relative to the media link. I wonder if the /media link of a markdown file should actually just render the markdown. |
This is not my repo. I just mirrored it from GitHub and I get greeted with a basic auth pop up all the time when I visit it on my private instance and only when I am not logged in on the demo instance. The pop up is the only reason why I reported this as it is very annoying and disrupts the user. |
I'd expect |
this is a dublicate of #8830 |
Close in favor of #8830 |
[x]
):Description
When I visit https://try.gitea.io/supersandro2000/hacker-laws I get a 404 for a missing embedded image in the readme. The image is embedded like this
<img width="480px" alt="Diagram: Amdahl's Law" src="./images/amdahls_law.png" />
and it resolves that to https://try.gitea.io/supersandro2000/images/amdahls_law.png which is not correct. The repository is a mirror of https://github.com/dwmkerr/hacker-laws.git .When I open the readme file directly it gets resolved correctly.Also this triggers a http basic auth on my private instance cause I think some api request has that activated.
Screenshots
The text was updated successfully, but these errors were encountered: