Fix AppSubURL -> AppURL typo

This commit is contained in:
Anthony Wang 2022-11-27 03:51:09 +00:00
parent a666eefe8f
commit 3f5f626264
No known key found for this signature in database
GPG Key ID: 42A5B952E6DD8D38
1 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ func AuthorizeInteraction(ctx *context.Context) {
ctx.ServerError("PersonIRIToName", err)
return
}
ctx.Redirect(setting.AppSubURL + name)
ctx.Redirect(setting.AppURL + name)
case forgefed.RepositoryType:
// Federated repository
err = forgefed.OnRepository(object, func(r *forgefed.Repository) error {
@ -67,7 +67,7 @@ func AuthorizeInteraction(ctx *context.Context) {
ctx.ServerError("RepositoryIRIToName", err)
return
}
ctx.Redirect(setting.AppSubURL + username + "/" + reponame)
ctx.Redirect(setting.AppURL + username + "/" + reponame)
case forgefed.TicketType:
// Federated issue or pull request
err = forgefed.OnTicket(object, func(t *forgefed.Ticket) error {
@ -82,7 +82,7 @@ func AuthorizeInteraction(ctx *context.Context) {
ctx.ServerError("TicketIRIToName", err)
return
}
ctx.Redirect(setting.AppSubURL + username + "/" + reponame + "/issues/" + strconv.FormatInt(idx, 10))
ctx.Redirect(setting.AppURL + username + "/" + reponame + "/issues/" + strconv.FormatInt(idx, 10))
default:
ctx.ServerError("Not implemented", err)
return