{{template "org/header" .}} - {{template "org/menu" .}}
{{if .WikiEmpty}}
@@ -11,8 +10,7 @@ This organization doesn't have a wiki yet.

- Enable the wiki on the .mokogitea (public) or .mokogitea-private (members-only) - repository to get started. + Enable a public or members-only wiki for this organization to get started.

{{else}} -- 2.52.0 From 31c58d34f19bc8a8d095c1ddec77dd75db62f7b9 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 14 Jul 2026 21:06:52 -0500 Subject: [PATCH 2/3] fix(org-wiki): also rewrite absolute-form intra-wiki links Match an optional https://host prefix so wiki links rendered as absolute URLs (not just root-relative) are rewritten to the /-/wiki/ route too. Covers nested pages like standards/Wiki-Structure. Claude-Session: https://claude.ai/code/session_01Bqe7fAuHQeiLueYfeHFrHw --- routers/web/org/wiki.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/org/wiki.go b/routers/web/org/wiki.go index 53f5d41188..510257d871 100644 --- a/routers/web/org/wiki.go +++ b/routers/web/org/wiki.go @@ -156,7 +156,7 @@ func Wiki(ctx *context.Context) { // wiki viewer instead of the repo file browser. func rewriteOrgWikiLinks(html htmltemplate.HTML, wikiRepo *repo_model.Repository, wikiBase string) htmltemplate.HTML { prefix := wikiRepo.Link() + "/src/branch/" + util.PathEscapeSegments(wikiRepo.DefaultBranch) + "/" - re := regexp.MustCompile(`href="` + regexp.QuoteMeta(prefix) + `([^"#?]*)([^"]*)"`) + re := regexp.MustCompile(`href="(?:https?://[^/"]+)?` + regexp.QuoteMeta(prefix) + `([^"#?]*)([^"]*)"`) out := re.ReplaceAllStringFunc(string(html), func(m string) string { sm := re.FindStringSubmatch(m) return `href="` + wikiBase + strings.TrimSuffix(sm[1], ".md") + sm[2] + `"` -- 2.52.0 From 3377e6895f1fbf54c71846108f90ba17308d2ce8 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 14 Jul 2026 20:43:52 -0500 Subject: [PATCH 3/3] fix(metadata): remove redundant Organization field from repo metadata page The Organization value is derived from the org profile (repo owner) and was shown as a read-only field; it added no value, so remove it entirely from the settings page. The DerivedOrgName model method stays (API still derives org on read). See #771. Claude-Session: https://claude.ai/code/session_01Bqe7fAuHQeiLueYfeHFrHw --- routers/web/repo/setting/metadata.go | 5 ++--- templates/repo/settings/metadata.tmpl | 9 +-------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/routers/web/repo/setting/metadata.go b/routers/web/repo/setting/metadata.go index 58abe8c548..c18838f5c4 100644 --- a/routers/web/repo/setting/metadata.go +++ b/routers/web/repo/setting/metadata.go @@ -40,9 +40,8 @@ func Metadata(ctx *context.Context) { } } ctx.Data["Manifest"] = manifest - // Organization is derived from the org profile (repo owner), not stored. - // It is displayed read-only. See issue #771. - ctx.Data["DerivedOrg"] = ctx.Repo.Repository.DerivedOrgName(ctx) + // Organization is derived from the org profile (repo owner), not stored, + // and is no longer surfaced on the metadata page (redundant). See #771. // Platform dropdown options come from the admin-configurable setting // (Admin -> Metadata). Keep the repo's current value selectable even if it diff --git a/templates/repo/settings/metadata.tmpl b/templates/repo/settings/metadata.tmpl index 8914ac430b..ee398f36a3 100644 --- a/templates/repo/settings/metadata.tmpl +++ b/templates/repo/settings/metadata.tmpl @@ -6,8 +6,7 @@
{{.CsrfTokenHtml}} -
-
+
{{if eq .Manifest.Platform "joomla"}} @@ -16,12 +15,6 @@ {{end}}
-
- - -

Derived from the organization profile (repository owner).

-
-
-- 2.52.0