|
|
@ -46,6 +46,7 @@ type LandingPage string |
|
|
|
const ( |
|
|
|
const ( |
|
|
|
LANDING_PAGE_HOME LandingPage = "/" |
|
|
|
LANDING_PAGE_HOME LandingPage = "/" |
|
|
|
LANDING_PAGE_EXPLORE LandingPage = "/explore" |
|
|
|
LANDING_PAGE_EXPLORE LandingPage = "/explore" |
|
|
|
|
|
|
|
LANDING_PAGE_LOGIN LandingPage = "/user/login" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
var ( |
|
|
@ -481,6 +482,8 @@ func NewContext() { |
|
|
|
switch sec.Key("LANDING_PAGE").MustString("home") { |
|
|
|
switch sec.Key("LANDING_PAGE").MustString("home") { |
|
|
|
case "explore": |
|
|
|
case "explore": |
|
|
|
LandingPageURL = LANDING_PAGE_EXPLORE |
|
|
|
LandingPageURL = LANDING_PAGE_EXPLORE |
|
|
|
|
|
|
|
case "login": |
|
|
|
|
|
|
|
LandingPageURL = LANDING_PAGE_LOGIN |
|
|
|
default: |
|
|
|
default: |
|
|
|
LandingPageURL = LANDING_PAGE_HOME |
|
|
|
LandingPageURL = LANDING_PAGE_HOME |
|
|
|
} |
|
|
|
} |
|
|
|