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

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

📋 Pull Request Information

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

Base: masterHead: master


📝 Commits (1)

  • 226be7d Fix images in Wiki repo not showing in Gitea Wiki (#4690)

📊 Changes

2 files changed (+7 additions, -1 deletions)

View changed files

📝 models/wiki.go (+6 -0)
📝 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/5012 **Author:** [@mattzzw](https://github.com/mattzzw) **Created:** 10/3/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`226be7d`](https://github.com/go-gitea/gitea/commit/226be7dd41247ad93766cd6bc2bbb07616a42567) Fix images in Wiki repo not showing in Gitea Wiki (#4690) ### 📊 Changes **2 files changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/wiki.go` (+6 -0) 📝 `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:16:41 -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#17590