Commit f6b31d7 1 parent d67722a commit f6b31d7 Copy full SHA for f6b31d7
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ func (web *WebController) PolicyDetailsUpdatePage(c *gin.Context) {
293
293
c .HTML (http .StatusOK , "policy_details.tmpl" , pageContext )
294
294
}
295
295
296
- func (web * WebController ) RedirectToLoginSubdomain (context * gin.Context ) {
296
+ func (web * WebController ) RedirectToLoginSubdomainIfDiggerDevOtherwiseToProjects (context * gin.Context ) {
297
297
host := context .Request .Host
298
298
if strings .Contains (host , "digger.dev" ) || strings .Contains (host , "uselemon.cloud" ) {
299
299
hostParts := strings .Split (host , "." )
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ func main() {
71
71
})
72
72
73
73
r .LoadHTMLGlob ("templates/*.tmpl" )
74
- r .GET ("/" , web .RedirectToLoginSubdomain )
74
+ r .GET ("/" , web .RedirectToLoginSubdomainIfDiggerDevOtherwiseToProjects )
75
75
76
76
r .POST ("/github-app-webhook" , controllers .GithubAppWebHook )
77
77
You can’t perform that action at this time.
0 commit comments