fix not respecting landing page setting (#4209)
* fix not respecting landing page setting * fmt * add landing page test
This commit is contained in:
parent
6efdcaed86
commit
adba2ad609
3 changed files with 26 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue