diff options
author | David Schneiderbauer <daviian@users.noreply.github.com> | 2018-06-15 05:42:46 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-06-15 11:42:46 +0800 |
commit | adba2ad609ca3f1612463a4ac6af22fd30b9e75f (patch) | |
tree | 8290255dcae15d54ada4c8d16c9209adb09e3ddf /routers/home.go | |
parent | 6efdcaed86565c91a3dc77631372a9cc45a58e89 (diff) | |
download | gitea-adba2ad609ca3f1612463a4ac6af22fd30b9e75f.tar.gz gitea-adba2ad609ca3f1612463a4ac6af22fd30b9e75f.zip |
fix not respecting landing page setting (#4209)
* fix not respecting landing page setting
* fmt
* add landing page test
Diffstat (limited to 'routers/home.go')
-rw-r--r-- | routers/home.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/home.go b/routers/home.go index 5bb353c7e1..0aa907658c 100644 --- a/routers/home.go +++ b/routers/home.go @@ -42,6 +42,10 @@ func Home(ctx *context.Context) { user.Dashboard(ctx) } return + // Check non-logged users landing page. + } else if setting.LandingPageURL != setting.LandingPageHome { + ctx.Redirect(setting.AppSubURL + string(setting.LandingPageURL)) + return } // Check auto-login. |