File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ func Routes(sessioner func(http.Handler) http.Handler) *web.Route {
576
576
// Miscellaneous
577
577
if setting .API .EnableSwagger {
578
578
m .Get ("/swagger" , func (ctx * context.APIContext ) {
579
- ctx .Redirect (setting .AppURL + "api/swagger" )
579
+ ctx .Redirect (setting .AppSubURL + "/ api/swagger" )
580
580
})
581
581
}
582
582
m .Get ("/version" , misc .Version )
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ func IsMember(ctx *context.APIContext) {
159
159
}
160
160
}
161
161
162
- redirectURL := setting .AppURL + "api/v1/orgs/" + ctx .Org .Organization .Name + "/public_members/" + userToCheck .Name
162
+ redirectURL := setting .AppSubURL + "/ api/v1/orgs/" + ctx .Org .Organization .Name + "/public_members/" + userToCheck .Name
163
163
ctx .Redirect (redirectURL , 302 )
164
164
}
165
165
You can’t perform that action at this time.
0 commit comments