aboutsummaryrefslogtreecommitdiffstats
path: root/routers/org/org.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/org/org.go')
-rw-r--r--routers/org/org.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/org/org.go b/routers/org/org.go
index 27ccf02d3f..cea70823af 100644
--- a/routers/org/org.go
+++ b/routers/org/org.go
@@ -10,6 +10,7 @@ import (
"github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/middleware"
+ "github.com/gogits/gogs/modules/setting"
)
const (
@@ -82,5 +83,5 @@ func CreatePost(ctx *middleware.Context, form auth.CreateOrgForm) {
}
log.Trace("Organization created: %s", org.Name)
- ctx.Redirect("/org/" + form.OrgName + "/dashboard")
+ ctx.Redirect(setting.AppRootSubUrl + "/org/" + form.OrgName + "/dashboard")
}