-
-
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
markdown: wrong hostname in commit url with empty ROOT_URL #29404
Comments
|
that is the problem... this already works with file links, only commit links are broken |
in my gitea config, both
when urls with hostname are required
there are some other places where gitea uses <link rel="manifest" href="data:application/json;base64,..."> decoded manifest json {
"name": "test",
"short_name": "test",
"start_url": "http://localhost:12345/",
"icons": [
{
"src": "http://localhost:12345/assets/img/logo.png",
"type": "image/png",
"sizes": "512x512"
},
{
"src": "http://localhost:12345/assets/img/logo.svg",
"type": "image/svg+xml",
"sizes": "512x512"
}
]
} <script>
// ...
// the escaped slashes look wrong
window.config = {
appUrl: 'http:\/\/localhost:12345\/',
|
Gitea is currently not build to be fully domain independend and may never be. Some parts (like the commit url) can be transformed but that's not possible everywhere. Here is an issue with more information: #19345 |
) Fixes #29404 Use relative links for - commits - mentions - issues --------- Co-authored-by: silverwind <me@silverwind.io>
Description
when i leave ROOT_URL empty
then gitea uses
http://localhost
as hostname in commit urlsbut gitea should produce urls without hostname
ping @KN4CK3R via #28909
repro https://try.gitea.io/milahu/test-gitea-markdown-wrong-commit-url
part of #19345
Gitea Version
1.21.6
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
gitea runs in a container on localhost, accessed from localhost
so gitea thinks that its hostname is "localhost", but that is wrong
Database
None
The text was updated successfully, but these errors were encountered: