summaryrefslogtreecommitdiffstats
path: root/routers/routes
diff options
context:
space:
mode:
authortechknowlogick <matti@mdranta.net>2019-01-31 09:38:20 -0500
committerGitHub <noreply@github.com>2019-01-31 09:38:20 -0500
commit3a7306945c2d0ea857daf71f14de0305cb467d49 (patch)
tree875c3147596ef9b2d30a0c679b95e16f7dbdba53 /routers/routes
parent98feb0ef4d37e60d5d0c0a2246857cfe87002f4e (diff)
downloadgitea-3a7306945c2d0ea857daf71f14de0305cb467d49.tar.gz
gitea-3a7306945c2d0ea857daf71f14de0305cb467d49.zip
Disable redirect for i18n (#5910)
Diffstat (limited to 'routers/routes')
-rw-r--r--routers/routes/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index fad2724d2f..48d1dc6a7f 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -106,7 +106,7 @@ func NewMacaron() *macaron.Macaron {
Langs: setting.Langs,
Names: setting.Names,
DefaultLang: "en-US",
- Redirect: true,
+ Redirect: false,
}))
m.Use(cache.Cacher(cache.Options{
Adapter: setting.CacheService.Adapter,