-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Wrong Link when referencing a commit hash on README.md #4536
Comments
Also, in /api/v1/markdown preview (while editing file through web), not only for commit references wrong link href is generated, but for issue links too.
Result is:
Should be:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
Since #4545 moved to 1.9.0, move this to 1.9.0 too. |
Since go-gitea#6273 was merged, we now have access to proper context metas always. Update SHA generated links to use these instead of urlPrefix. Update tests as well. Fixes go-gitea#4536.
Gitea version (or commit ref): 1.5.0+rc2-2-g5a7830e0e
Can you reproduce the bug at https://try.gitea.io:
Description
When adding a commit hash to README.md the hash gets linkyfied to
http://host/testOrg/testRepo1/src/branch/master/commit/<commitID>
instead ofhttp://host/testOrg/testRepo1/commit/<commitID>
The text was updated successfully, but these errors were encountered: