mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Add suburl support
This commit is contained in:
@@ -127,7 +127,7 @@ func Profile(ctx *middleware.Context) {
|
||||
uname := ctx.Params(":username")
|
||||
// Special handle for FireFox requests favicon.ico.
|
||||
if uname == "favicon.ico" {
|
||||
ctx.Redirect(setting.AppRootSubUrl + "/img/favicon.png")
|
||||
ctx.Redirect(setting.AppSubUrl + "/img/favicon.png")
|
||||
return
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ func Profile(ctx *middleware.Context) {
|
||||
}
|
||||
|
||||
if u.IsOrganization() {
|
||||
ctx.Redirect(setting.AppRootSubUrl + "/org/" + u.Name)
|
||||
ctx.Redirect(setting.AppSubUrl + "/org/" + u.Name)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ func Email2User(ctx *middleware.Context) {
|
||||
}
|
||||
return
|
||||
}
|
||||
ctx.Redirect(setting.AppRootSubUrl + "/user/" + u.Name)
|
||||
ctx.Redirect(setting.AppSubUrl + "/user/" + u.Name)
|
||||
}
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user