Browse Source

more link fix

tags/v1.21.12.1
Unknwon 10 years ago
parent
commit
968edb3e44
2 changed files with 6 additions and 2 deletions
  1. +4
    -0
      modules/base/markdown.go
  2. +2
    -2
      routers/org/setting.go

+ 4
- 0
modules/base/markdown.go View File

@@ -299,6 +299,10 @@ OUTER_LOOP:
} }


case html.EndTagToken: case html.EndTagToken:
if len(startTags) == 0 {
break
}

buf.Write(leftAngleBracket) buf.Write(leftAngleBracket)
buf.WriteString(startTags[len(startTags)-1]) buf.WriteString(startTags[len(startTags)-1])
buf.Write(rightAngleBracket) buf.Write(rightAngleBracket)


+ 2
- 2
routers/org/setting.go View File

@@ -76,7 +76,7 @@ func SettingsPost(ctx *middleware.Context, form auth.UpdateOrgSettingForm) {
} }
log.Trace("Organization setting updated: %s", org.Name) log.Trace("Organization setting updated: %s", org.Name)
ctx.Flash.Success(ctx.Tr("org.settings.update_setting_success")) ctx.Flash.Success(ctx.Tr("org.settings.update_setting_success"))
ctx.Redirect(org.HomeLink() + "/settings")
ctx.Redirect(ctx.Org.OrgLink + "/settings")
} }


func SettingsAvatar(ctx *middleware.Context, form auth.UploadAvatarForm) { func SettingsAvatar(ctx *middleware.Context, form auth.UploadAvatarForm) {
@@ -108,7 +108,7 @@ func SettingsDelete(ctx *middleware.Context) {
if err := models.DeleteOrganization(org); err != nil { if err := models.DeleteOrganization(org); err != nil {
if models.IsErrUserOwnRepos(err) { if models.IsErrUserOwnRepos(err) {
ctx.Flash.Error(ctx.Tr("form.org_still_own_repo")) ctx.Flash.Error(ctx.Tr("form.org_still_own_repo"))
ctx.Redirect(org.HomeLink() + "/settings/delete")
ctx.Redirect(ctx.Org.OrgLink + "/settings/delete")
} else { } else {
ctx.Handle(500, "DeleteOrganization", err) ctx.Handle(500, "DeleteOrganization", err)
} }


Loading…
Cancel
Save