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
I stumble upon a rendering issue with markdown relative links. I didn't find any specification for this so I'm referring to GitHub documentation which states "Links starting with / will be relative to the repository root."
However in Gitea, the are relative to gitea root url.
For example:
[Link to ../test.md] (../test.md) -> Working (links to https://try.gitea.io/myrepo/src/branch/master/test.md)
[Link to /test.md] (/test.md) -> Not working (links to https://try.gitea.io/test.md)
I reproduce the issue on try.gitea.io, see https://try.gitea.io/mgalloux/test-markdown
In the README, you have a basic relative link (../test.md) which works as expected, but the syntax (/test.md) links to the ROOT_URL/test.md and returns a 404.
Gitea Version
1.20.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
Discovered the issue on my docker instance with Gitea 1.20.0 but was able to reproduce it on try.gitea.io 1.22.0+dev-188-g1be49fddae
Database
None
The text was updated successfully, but these errors were encountered:
Description
I stumble upon a rendering issue with markdown relative links. I didn't find any specification for this so I'm referring to GitHub documentation which states "Links starting with / will be relative to the repository root."
However in Gitea, the are relative to gitea root url.
For example:
I reproduce the issue on try.gitea.io, see https://try.gitea.io/mgalloux/test-markdown
In the README, you have a basic relative link (../test.md) which works as expected, but the syntax (/test.md) links to the ROOT_URL/test.md and returns a 404.
Gitea Version
1.20.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
Discovered the issue on my docker instance with Gitea 1.20.0 but was able to reproduce it on try.gitea.io 1.22.0+dev-188-g1be49fddae
Database
None
The text was updated successfully, but these errors were encountered: