Skip to content
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 relative links / not working properly #27646

Closed
mg-cloud opened this issue Oct 16, 2023 · 1 comment
Closed

Markdown relative links / not working properly #27646

mg-cloud opened this issue Oct 16, 2023 · 1 comment
Labels

Comments

@mg-cloud
Copy link

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:

[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

bug_gitea

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

@mg-cloud
Copy link
Author

Closing as duplicate of #18592

@mg-cloud mg-cloud closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant