aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-11 17:12:37 -0500
committerUnknwon <u@gogs.io>2016-03-11 17:12:37 -0500
commitf76d821bdacf4449113547f3cc3301349516cd34 (patch)
tree6788fe9179e815b6c0e3382463d1087b0463108f /cmd
parent263304b6b778a3c9e55128da050df8e31e291fab (diff)
downloadgitea-f76d821bdacf4449113547f3cc3301349516cd34.tar.gz
gitea-f76d821bdacf4449113547f3cc3301349516cd34.zip
fix #2804
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 0fae7be857..c3c4ed75cd 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -194,6 +194,9 @@ func runWeb(ctx *cli.Context) {
// Routers.
m.Get("/", ignSignIn, routers.Home)
m.Group("/explore", func() {
+ m.Get("", func(ctx *context.Context) {
+ ctx.Redirect(setting.AppSubUrl + "/explore/repos")
+ })
m.Get("/repos", routers.ExploreRepos)
m.Get("/users", routers.ExploreUsers)
}, ignSignIn)