|
|
@@ -64,6 +64,11 @@ func Toggle(options *ToggleOptions) macaron.Handler { |
|
|
ctx.Redirect(setting.AppSubURL + "/") |
|
|
ctx.Redirect(setting.AppSubURL + "/") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ctx.QueryBool("course") { |
|
|
|
|
|
ctx.Redirect(setting.AppSubURL + "/" + setting.Course.OrgName) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Redirect to dashboard if user tries to visit any non-login page. |
|
|
// Redirect to dashboard if user tries to visit any non-login page. |
|
|
|