[PR #5013] [CLOSED] Fix images in Wiki repo not showing in Gitea Wiki (#4690) #17591

Closed
opened 2025-11-02 14:17:18 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5013
Author: @mattzzw
Created: 10/3/2018
Status: Closed

Base: masterHead: master


📝 Commits (5)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 routers/repo/wiki.go (+1 -1)

📄 Description

wikiRaw method in routers calls WikiNameToFilename which unconditionally adds ".md" to the path.
As a result, findEntryForFile will fail finding the corresponding git blob.
I added WikiNameToFilenameRaw to the model used in wikiRaw which omits any additions to the filename.

Signed-off-by: Matthias Wientapper m.wientapper@gmx.de


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5013 **Author:** [@mattzzw](https://github.com/mattzzw) **Created:** 10/3/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (5) - [`226be7d`](https://github.com/go-gitea/gitea/commit/226be7dd41247ad93766cd6bc2bbb07616a42567) Fix images in Wiki repo not showing in Gitea Wiki (#4690) - [`aac4d1d`](https://github.com/go-gitea/gitea/commit/aac4d1d6b5b0e60d7fa57d1db3a8ea49cdf41661) Fixed comment according to style guide (#4690) - [`2e263a0`](https://github.com/go-gitea/gitea/commit/2e263a0472cf8ddeb503e12663d7beffadf3d512) Fixed fmt (#4690) - [`06492fc`](https://github.com/go-gitea/gitea/commit/06492fcedda89f49659ed6a4282f7fdb085f1322) Fixed code duplication (#4690) - [`6a0202b`](https://github.com/go-gitea/gitea/commit/6a0202b62170572655d755444c11b3a3793a80e5) Merge branch 'master' into master ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/wiki.go` (+1 -1) </details> ### 📄 Description wikiRaw method in routers calls WikiNameToFilename which unconditionally adds ".md" to the path. As a result, findEntryForFile will fail finding the corresponding git blob. I added WikiNameToFilenameRaw to the model used in wikiRaw which omits any additions to the filename. Signed-off-by: Matthias Wientapper m.wientapper@gmx.de --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 14:17:20 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17591