Commit d67722a 1 parent db8fae7 commit d67722a Copy full SHA for d67722a
File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -295,16 +295,17 @@ func (web *WebController) PolicyDetailsUpdatePage(c *gin.Context) {
295
295
296
296
func (web * WebController ) RedirectToLoginSubdomain (context * gin.Context ) {
297
297
host := context .Request .Host
298
- hostParts := strings .Split (host , "." )
299
- if len ( hostParts ) > 2 {
300
- hostParts [ 0 ] = "login"
301
- host = strings . Join ( hostParts , "." )
302
- }
303
- context . Redirect ( http . StatusMovedPermanently , fmt . Sprintf ( "https://%s" , host ))
304
- }
298
+ if strings . Contains ( host , "digger.dev" ) || strings .Contains (host , "uselemon.cloud" ) {
299
+ hostParts := strings . Split ( host , "." )
300
+ if len ( hostParts ) > 2 {
301
+ hostParts [ 0 ] = "login"
302
+ host = strings . Join ( hostParts , "." )
303
+ }
304
+ context . Redirect ( http . StatusMovedPermanently , fmt . Sprintf ( "https://%s" , host ))
305
305
306
- func (web * WebController ) RedirectToProjectsPage (context * gin.Context ) {
307
- context .Redirect (http .StatusMovedPermanently , "/projects" )
306
+ } else {
307
+ context .Redirect (http .StatusMovedPermanently , "/projects" )
308
+ }
308
309
}
309
310
310
311
func (web * WebController ) UpdateRepoPage (c * gin.Context ) {
You can’t perform that action at this time.
0 commit comments