From 803eb8c24660a4d612c6145acec2e20ba8525bc5 Mon Sep 17 00:00:00 2001 From: Nirmal Kumar R Date: Sat, 9 Nov 2024 15:33:36 +0530 Subject: [PATCH] Remove unnecessary URLPrefix assignment --- routers/common/markup.go | 1 - 1 file changed, 1 deletion(-) diff --git a/routers/common/markup.go b/routers/common/markup.go index ea14e315f2..ce3a8acdb0 100644 --- a/routers/common/markup.go +++ b/routers/common/markup.go @@ -55,7 +55,6 @@ func (re *Renderer) RenderMarkup(ctx *context.Base, repo *context.Repository) { case "file": // File as document based on file extension markupType = "" - re.URLPrefix = repo.RepoLink relativePath = re.FilePath default: ctx.Error(http.StatusUnprocessableEntity, fmt.Sprintf("Unknown mode: %s", re.Mode))