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:
@@ -22,7 +22,7 @@ import (
|
||||
func extractPath(next string) string {
|
||||
n, err := url.Parse(next)
|
||||
if err != nil {
|
||||
return setting.AppRootSubUrl + "/"
|
||||
return setting.AppSubUrl + "/"
|
||||
}
|
||||
return n.Path
|
||||
}
|
||||
@@ -88,7 +88,7 @@ func SocialSignIn(ctx *middleware.Context) {
|
||||
return
|
||||
}
|
||||
case models.ErrOauth2NotAssociated:
|
||||
next = setting.AppRootSubUrl + "/user/sign_up"
|
||||
next = setting.AppSubUrl + "/user/sign_up"
|
||||
default:
|
||||
ctx.Handle(500, "social.SocialSignIn(GetOauth2)", err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user