-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Regression - after update to 1.22 wiki links to wiki pages with hyphens or dots in the name only return plain text #31395
Labels
Comments
This was referenced Jun 17, 2024
-> Fix rendered wiki page link #31398 |
wxiaoguang
added a commit
that referenced
this issue
Jun 18, 2024
wxiaoguang
added a commit
to wxiaoguang/gitea
that referenced
this issue
Jun 18, 2024
Fix go-gitea#31395 # Conflicts: # modules/markup/markdown/transform_link.go # routers/web/repo/view.go
wxiaoguang
added a commit
that referenced
this issue
Jun 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Steps to reproduce
-
or a dot.
in the nameResult
Clicking on the link will only return a plain text representation of the linked wiki page's content.
Expected Result
The whole wiki page html should be returned
Additional info
This was working in gitea 1.21.8.
The auto-generated URLs for the wiki pages with a hyphen end in
.-
and the ones for wiki pages with a.
contain the dot.I assume that this change caused the problem.
Example project with wiki
https://demo.gitea.com/reimer-atb/test/wiki/Home
Example markdown with links that do not work
Gitea Version
1.22.0
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?
Tested on demo.gitea.com and on a private gitea 1.22.0 instance (no idea how that is run because it is provided by someone else).
Database
None
The text was updated successfully, but these errors were encountered: